From b6c0be0d00773e6637c02276ee36231468c71157 Mon Sep 17 00:00:00 2001 From: emmatveev Date: Tue, 5 Mar 2024 16:08:42 +0300 Subject: [PATCH] debug --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index 1098a95..e1aedb1 100644 --- a/main.py +++ b/main.py @@ -68,6 +68,10 @@ def do_action(message: Message): bot.reply_to(message, choice(get_replies())) return info = get_chat_info(message.chat.id) + if message.text == '#debug' and client.is_staff(telegram_id=message.from_user.id): + bot.send_message(message.chat.id, f'chat id: {message.chat.id}\n' + f'probability: {info["probability"]}') + return if info['state'] == "set_probability": try: value = int(message.text)