From 7d4fe425eb61d41276aae9ddcdb3e3b2b039bc90 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Mon, 7 Jan 2019 20:25:48 +0530 Subject: [PATCH] Disable in groups --- bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bot.py b/bot.py index ae1a925..0ef0664 100644 --- a/bot.py +++ b/bot.py @@ -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]