UpdateChatDefaultBannedRights

class pyrogram.raw.types.UpdateChatDefaultBannedRights

Default banned rights in a normal chat were updated

Constructor of Update.

Details:
  • Layer: 223

  • ID: 54C01850

Parameters:
  • peer (Peer) – The chat

  • default_banned_rights (ChatBannedRights) – New default banned rights

  • version (int 32-bit) – Version

TL Schema

updateChatDefaultBannedRights#54c01850
peer:Peer
default_banned_rights:ChatBannedRights
version:int

= Update

Parameter Tree

UpdateChatDefaultBannedRights
├── peerPeer
│ ├── PeerUser
│ │ └── user_idlong
│ ├── PeerChat
│ │ └── chat_idlong
│ └── PeerChannel
│ └── channel_idlong
├── default_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
└── versionint

Example

UpdateChatDefaultBannedRights(
    peer=PeerUser(user_id=0),
    default_banned_rights=ChatBannedRights(until_date=0),
    version=0,
)