This commit is contained in:
emmatveev 2024-03-05 16:08:42 +03:00
parent 0368e69119
commit b6c0be0d00

View File

@ -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)