Fixed int

This commit is contained in:
yasirarism 2023-06-16 15:22:35 +00:00 committed by GitHub
parent dca3ed129f
commit fb9a5eacea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -258,7 +258,9 @@ async def unban_func(self, message, strings):
return await message.reply_text(strings("unban_channel_err"))
if len(message.command) == 2:
user = int(message.text.split(None, 1)[1])
user = message.text.split(None, 1)[1]
if not user.startswith("@"):
user = int(user)
elif len(message.command) == 1 and reply:
user = message.reply_to_message.from_user.id
else: