Disable in groups
This commit is contained in:
parent
579fafd7b1
commit
7d4fe425eb
2
bot.py
2
bot.py
|
@ -101,6 +101,8 @@ def post(bot, update, db):
|
||||||
tag = (chat_id == user_id)
|
tag = (chat_id == user_id)
|
||||||
send_stats(bot, update, db, tag)
|
send_stats(bot, update, db, tag)
|
||||||
return
|
return
|
||||||
|
if chat_id < 0:
|
||||||
|
return
|
||||||
if chat_id in config.allowed_users:
|
if chat_id in config.allowed_users:
|
||||||
callback_id = get_callback_id(db)
|
callback_id = get_callback_id(db)
|
||||||
photo = update.message.photo[0]
|
photo = update.message.photo[0]
|
||||||
|
|
Loading…
Reference in New Issue