Add missing return.

This commit is contained in:
Ceda EI 2018-11-16 12:46:32 +00:00
parent 16e6f0f720
commit afce68cad7
1 changed files with 1 additions and 0 deletions

1
bot.py
View File

@ -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 '