RequestPeerTypeBroadcast

class pyrogram.raw.types.RequestPeerTypeBroadcast

Choose a channel

Constructor of RequestPeerType.

Details:
  • Layer: 223

  • ID: 339BEF6C

Parameters:
  • creator (bool, optional) – Whether to allow only choosing channels that were created by the current user.

  • has_username (bool, optional) – If specified, allows only choosing channels with or without a username, according to the value of Bool.

  • user_admin_rights (ChatAdminRights, optional) – If specified, allows only choosing channels where the current user is an admin with at least the specified admin rights.

  • bot_admin_rights (ChatAdminRights, optional) – If specified, allows only choosing channels where the bot is an admin with at least the specified admin rights.

TL Schema

requestPeerTypeBroadcast#339bef6c
flags:#
creator:flags.0?true
has_username:flags.3?Bool
user_admin_rights:flags.1?ChatAdminRights
bot_admin_rights:flags.2?ChatAdminRights

= RequestPeerType

Parameter Tree

RequestPeerTypeBroadcast
├── creatortrue (optional)
├── has_usernameBool (optional)
├── user_admin_rightsChatAdminRights (optional)
│ └── ChatAdminRights
│ ├── change_infotrue (optional)
│ ├── post_messagestrue (optional)
│ ├── edit_messagestrue (optional)
│ ├── delete_messagestrue (optional)
│ ├── ban_userstrue (optional)
│ ├── invite_userstrue (optional)
│ ├── pin_messagestrue (optional)
│ ├── add_adminstrue (optional)
│ ├── anonymoustrue (optional)
│ ├── manage_calltrue (optional)
│ ├── othertrue (optional)
│ ├── manage_topicstrue (optional)
│ ├── post_storiestrue (optional)
│ ├── edit_storiestrue (optional)
│ ├── delete_storiestrue (optional)
│ ├── manage_direct_messagestrue (optional)
│ └── manage_rankstrue (optional)
└── bot_admin_rightsChatAdminRights (optional)
└── ChatAdminRights
├── change_infotrue (optional)
├── post_messagestrue (optional)
├── edit_messagestrue (optional)
├── delete_messagestrue (optional)
├── ban_userstrue (optional)
├── invite_userstrue (optional)
├── pin_messagestrue (optional)
├── add_adminstrue (optional)
├── anonymoustrue (optional)
├── manage_calltrue (optional)
├── othertrue (optional)
├── manage_topicstrue (optional)
├── post_storiestrue (optional)
├── edit_storiestrue (optional)
├── delete_storiestrue (optional)
├── manage_direct_messagestrue (optional)
└── manage_rankstrue (optional)

Example

RequestPeerTypeBroadcast(
)