Fix unban

Signed-off-by: Yasir Aris M <git@yasirdev.my.id>
This commit is contained in:
Yasir Aris M 2023-12-14 07:36:46 +07:00 committed by GitHub
parent 024f825fba
commit 99851223f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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