ChannelParticipantBanned

class pyrogram.raw.types.ChannelParticipantBanned

Banned/kicked user

Constructor of ChannelParticipant.

Details:
  • Layer: 223

  • ID: D5F0AD91

Parameters:
  • peer (Peer) – The banned peer

  • kicked_by (int 64-bit) – User was kicked by the specified admin

  • date (int 32-bit) – When did the user join the group

  • banned_rights (ChatBannedRights) – Banned rights

  • left (bool, optional) – Whether the user has left the group

  • rank (str, optional) – N/A

TL Schema

channelParticipantBanned#d5f0ad91
flags:#
left:flags.0?true
peer:Peer
kicked_by:long
date:int
banned_rights:ChatBannedRights
rank:flags.2?string

= ChannelParticipant

Parameter Tree

ChannelParticipantBanned
├── lefttrue (optional)
├── peerPeer
│ ├── PeerUser
│ │ └── user_idlong
│ ├── PeerChat
│ │ └── chat_idlong
│ └── PeerChannel
│ └── channel_idlong
├── kicked_bylong
├── dateint
├── banned_rightsChatBannedRights
│ └── ChatBannedRights
│ ├── view_messagestrue (optional)
│ ├── send_messagestrue (optional)
│ ├── send_mediatrue (optional)
│ ├── send_stickerstrue (optional)
│ ├── send_gifstrue (optional)
│ ├── send_gamestrue (optional)
│ ├── send_inlinetrue (optional)
│ ├── embed_linkstrue (optional)
│ ├── send_pollstrue (optional)
│ ├── change_infotrue (optional)
│ ├── invite_userstrue (optional)
│ ├── pin_messagestrue (optional)
│ ├── manage_topicstrue (optional)
│ ├── send_photostrue (optional)
│ ├── send_videostrue (optional)
│ ├── send_roundvideostrue (optional)
│ ├── send_audiostrue (optional)
│ ├── send_voicestrue (optional)
│ ├── send_docstrue (optional)
│ ├── send_plaintrue (optional)
│ ├── edit_ranktrue (optional)
│ └── until_dateint
└── rankstring (optional)

Example

ChannelParticipantBanned(
    peer=PeerUser(user_id=0),
    kicked_by=0,
    date=0,
    banned_rights=ChatBannedRights(until_date=0),
)