mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +00:00
Fix unban
Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
This commit is contained in:
parent
024f825fba
commit
99851223f9
1 changed files with 1 additions and 3 deletions
|
|
@ -276,8 +276,6 @@ async def unban_func(_, message, strings):
|
|||
|
||||
if len(message.command) == 2:
|
||||
user = message.text.split(None, 1)[1]
|
||||
if not user.isdigit():
|
||||
user = int(user)
|
||||
elif len(message.command) == 1 and reply:
|
||||
user = message.reply_to_message.from_user.id
|
||||
else:
|
||||
|
|
@ -858,4 +856,4 @@ async def mentionall(app: Client, msg: Message):
|
|||
message = ' '.join(total[i:i+NUM])
|
||||
await app.send_message(msg.chat.id, message, message_thread_id=msg.message_thread_id)
|
||||
else:
|
||||
await app.send_message(msg.chat.id, 'Admins only can do that !', reply_to_message_id=msg.id)
|
||||
await app.send_message(msg.chat.id, 'Admins only can do that !', reply_to_message_id=msg.id)
|
||||
|
|
|
|||
Loading…
Reference in a new issue