ChannelParticipantBanned
- class pyrogram.raw.types.ChannelParticipantBanned
Banned/kicked user
Constructor of
ChannelParticipant.- Details:
Layer:
223ID:
D5F0AD91
- Parameters:
peer (
Peer) – The banned peerkicked_by (
int64-bit) – User was kicked by the specified admindate (
int32-bit) – When did the user join the groupbanned_rights (
ChatBannedRights) – Banned rightsleft (
bool, optional) – Whether the user has left the grouprank (
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
├── left →
true (optional)├── peer →
Peer│ ├──
PeerUser│ │ └── user_id →
long│ ├──
PeerChat│ │ └── chat_id →
long│ └──
PeerChannel│ └── channel_id →
long├── kicked_by →
long├── date →
int├── banned_rights →
ChatBannedRights│ └──
ChatBannedRights│ ├── view_messages →
true (optional)│ ├── send_messages →
true (optional)│ ├── send_media →
true (optional)│ ├── send_stickers →
true (optional)│ ├── send_gifs →
true (optional)│ ├── send_games →
true (optional)│ ├── send_inline →
true (optional)│ ├── embed_links →
true (optional)│ ├── send_polls →
true (optional)│ ├── change_info →
true (optional)│ ├── invite_users →
true (optional)│ ├── pin_messages →
true (optional)│ ├── manage_topics →
true (optional)│ ├── send_photos →
true (optional)│ ├── send_videos →
true (optional)│ ├── send_roundvideos →
true (optional)│ ├── send_audios →
true (optional)│ ├── send_voices →
true (optional)│ ├── send_docs →
true (optional)│ ├── send_plain →
true (optional)│ ├── edit_rank →
true (optional)│ └── until_date →
int└── rank →
string (optional)Example
ChannelParticipantBanned(
peer=PeerUser(user_id=0),
kicked_by=0,
date=0,
banned_rights=ChatBannedRights(until_date=0),
)