UpdateChatDefaultBannedRights
- class pyrogram.raw.types.UpdateChatDefaultBannedRights
Default banned rights in a normal chat were updated
Constructor of
Update.- Details:
Layer:
223ID:
54C01850
- Parameters:
peer (
Peer) – The chatdefault_banned_rights (
ChatBannedRights) – New default banned rightsversion (
int32-bit) – Version
TL Schema
updateChatDefaultBannedRights#54c01850
peer:Peer
default_banned_rights:ChatBannedRights
version:int
= Update
Parameter Tree
UpdateChatDefaultBannedRights
├── peer →
Peer│ ├──
PeerUser│ │ └── user_id →
long│ ├──
PeerChat│ │ └── chat_id →
long│ └──
PeerChannel│ └── channel_id →
long├── default_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└── version →
intExample
UpdateChatDefaultBannedRights(
peer=PeerUser(user_id=0),
default_banned_rights=ChatBannedRights(until_date=0),
version=0,
)