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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue