messages.EditChatDefaultBannedRights

class pyrogram.raw.functions.messages.EditChatDefaultBannedRights

Edit the default banned rights of a channel/supergroup/group.

Details:
  • Layer: 227

  • ID: A5866B41

Parameters:
Returns:

Updates

TL Schema

messages.editChatDefaultBannedRights#a5866b41
peer:InputPeer
banned_rights:ChatBannedRights

= Updates

Parameter Tree

EditChatDefaultBannedRights
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
└── banned_rights → 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)
├── send_reactions → true (optional)
└── until_date → int

Example

await app.invoke(
    EditChatDefaultBannedRights(
        peer=await app.resolve_peer(chat_id),
        banned_rights=ChatBannedRights(
            view_messages=None,
            send_messages=None,
            send_media=None,
            send_stickers=None,
            send_gifs=None,
            send_games=None,
            send_inline=None,
            embed_links=None,
            send_polls=None,
            change_info=None,
            invite_users=None,
            pin_messages=None,
            manage_topics=None,
            send_photos=None,
            send_videos=None,
            send_roundvideos=None,
            send_audios=None,
            send_voices=None,
            send_docs=None,
            send_plain=None,
            edit_rank=None,
            send_reactions=None,
            until_date=0
        ),
    )
)