Fix RPCError Import

This commit is contained in:
yasirarism 2023-08-12 22:25:44 +07:00 committed by GitHub
parent f62271436e
commit ec4285eaee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,8 +56,8 @@ async def anonymous_admin_verification(
) not in set(ANON.keys()):
try:
await CallbackQuery.message.edit_text("Button has been Expired.")
except pyrogram.types.RPCError:
with contextlib.suppress(pyrogram.types.RPCError):
except pyrogram.errors.RPCError:
with contextlib.suppress(pyrogram.errors.RPCError):
await CallbackQuery.message.delete()
return
cb = ANON.pop(