403 - Forbidden

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

Bases: pyrogram.api.errors.error.Error

CODE = 403

Error Code

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

Bases: pyrogram.api.errors.exceptions.forbidden_403.Forbidden

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

ID = 'CHAT_WRITE_FORBIDDEN'

Error ID

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

Bases: pyrogram.api.errors.exceptions.forbidden_403.Forbidden

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

ID = 'RIGHT_FORBIDDEN'

Error ID

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

Bases: pyrogram.api.errors.exceptions.forbidden_403.Forbidden

You don’t have rights to invite other users

ID = 'CHAT_ADMIN_INVITE_REQUIRED'

Error ID

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

Bases: pyrogram.api.errors.exceptions.forbidden_403.Forbidden

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

ID = 'MESSAGE_DELETE_FORBIDDEN'

Error ID

Type:str