|
|
|
@ -102,7 +102,7 @@ def send_stats(message):
|
|
|
|
|
chat_id = str(message.chat.id)
|
|
|
|
|
user_id = str(message.from_user.id)
|
|
|
|
|
#if str(message.from_user.id)==db[str(message.chat.id)]:
|
|
|
|
|
bot.send_message(chat_id, f"Count of lunchs of USER [{telebot.util.user_link(message.from_user)}]: {db[chat_id][user_id]}", parse_mode='HTML')
|
|
|
|
|
bot.send_message(chat_id, f"Количество потреченных обедов [{telebot.util.user_link(message.from_user)}]: {db[chat_id][user_id]}😿", parse_mode='HTML')
|
|
|
|
|
|
|
|
|
|
@bot.message_handler()
|
|
|
|
|
def catch_all_messages(message):
|
|
|
|
@ -112,7 +112,7 @@ def catch_all_messages(message):
|
|
|
|
|
def catch_edited_messages(message):
|
|
|
|
|
catch(message)
|
|
|
|
|
|
|
|
|
|
mod = 2
|
|
|
|
|
mod = 1
|
|
|
|
|
if mod == 1:
|
|
|
|
|
while True:
|
|
|
|
|
try:
|
|
|
|
|