Skip to content

Commit 4526c4f

Browse files
committed
First TeleBot bot bug fix: wrong group chat id comparison (str and int)
1 parent efc98c0 commit 4526c4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎examples/telebot_bot/telebot_bot.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
raise AssertionError("Please configure TELEBOT_BOT_TOKEN and GROUP_CHAT_ID as environment variables")
3232

3333
bot = telebot.AsyncTeleBot(os.environ["TELEBOT_BOT_TOKEN"])
34-
GROUP_CHAT_ID = os.environ["GROUP_CHAT_ID"]\
34+
GROUP_CHAT_ID = int(os.environ["GROUP_CHAT_ID"])
3535

3636
def is_api_group(chat_id):
3737
return chat_id== GROUP_CHAT_ID

0 commit comments

Comments
 (0)