messages.EditChatDefaultBannedRights

class pyrogram.raw.functions.messages.EditChatDefaultBannedRights

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

Details:
  • Layer: 223

  • ID: A5866B41

Parameters:
Returns:

Updates

TL Schema

messages.editChatDefaultBannedRights#a5866b41
peer:InputPeer
banned_rights:ChatBannedRights

= Updates

Parameter Tree

EditChatDefaultBannedRights
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── banned_rightsChatBannedRights
├── 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

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,
            until_date=0
        ),
    )
)