add quote logging

This commit is contained in:
Rykov7
2023-04-05 01:34:08 +03:00
parent c1dcbcec13
commit 01fc2f6241
+1
View File
@@ -118,6 +118,7 @@ def translate_layout(message: types.Message):
@bot.message_handler(commands=["quote", "цитата"]) @bot.message_handler(commands=["quote", "цитата"])
def stan_speak(message: types.Message): def stan_speak(message: types.Message):
logging.info(f"[{message.chat.id}] [{message.from_user.id}] {message.from_user.first_name}: {message.text}")
bot.send_message(message.chat.id, stan.speak(0, message.chat.id)) bot.send_message(message.chat.id, stan.speak(0, message.chat.id))