Disable in groups

This commit is contained in:
Ceda EI 2019-01-07 20:25:48 +05:30
parent 579fafd7b1
commit 7d4fe425eb
1 changed files with 2 additions and 0 deletions

2
bot.py
View File

@ -101,6 +101,8 @@ def post(bot, update, db):
tag = (chat_id == user_id)
send_stats(bot, update, db, tag)
return
if chat_id < 0:
return
if chat_id in config.allowed_users:
callback_id = get_callback_id(db)
photo = update.message.photo[0]