403 - Forbidden

exception pyrogram.errors.exceptions.forbidden_403.Forbidden(x: int = None, query_type: type = None)
CODE = 403

RPC Error Code

Type:int
exception pyrogram.errors.exceptions.forbidden_403.ChatWriteForbidden(x: int = None, query_type: type = None)

You don’t have rights to send messages in this chat

ID = 'CHAT_WRITE_FORBIDDEN'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.forbidden_403.RightForbidden(x: int = None, query_type: type = None)

One or more admin rights can’t be applied to this kind of chat (channel/supergroup)

ID = 'RIGHT_FORBIDDEN'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.forbidden_403.ChatAdminInviteRequired(x: int = None, query_type: type = None)

You don’t have rights to invite other users

ID = 'CHAT_ADMIN_INVITE_REQUIRED'

RPC Error ID

Type:str
exception pyrogram.errors.exceptions.forbidden_403.MessageDeleteForbidden(x: int = None, query_type: type = None)

You don’t have rights to delete messages in this chat

ID = 'MESSAGE_DELETE_FORBIDDEN'

RPC Error ID

Type:str