mirror of https://gitlab.com/ceda_ei/Nukist-Bot
Add missing return.
This commit is contained in:
parent
16e6f0f720
commit
afce68cad7
1
bot.py
1
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 '
|
||||
|
|
Loading…
Reference in New Issue