From afce68cad7b4e6926b1518784f196c44513fe37a Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Fri, 16 Nov 2018 12:46:32 +0000 Subject: [PATCH] Add missing return. --- bot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bot.py b/bot.py index ef5b029..3c3188f 100644 --- a/bot.py +++ b/bot.py @@ -18,6 +18,7 @@ def nuke(bot, update): if not m.reply_to_message: text = "You need to reply to a message." bot.send_message(chat_id=m.chat_id, text=text) + return user = bot.get_chat_member(m.chat.id, m.from_user.id) if not user.can_delete_messages and user.status != "creator": text = ('Only admins with "Delete Messages Permission" are allowed '