RequestPeerTypeBroadcast
- class pyrogram.raw.types.RequestPeerTypeBroadcast
Choose a channel
Constructor of
RequestPeerType.- Details:
Layer:
223ID:
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
├── creator →
true (optional)├── has_username →
Bool (optional)├── user_admin_rights →
ChatAdminRights (optional)│ └──
ChatAdminRights│ ├── change_info →
true (optional)│ ├── post_messages →
true (optional)│ ├── edit_messages →
true (optional)│ ├── delete_messages →
true (optional)│ ├── ban_users →
true (optional)│ ├── invite_users →
true (optional)│ ├── pin_messages →
true (optional)│ ├── add_admins →
true (optional)│ ├── anonymous →
true (optional)│ ├── manage_call →
true (optional)│ ├── other →
true (optional)│ ├── manage_topics →
true (optional)│ ├── post_stories →
true (optional)│ ├── edit_stories →
true (optional)│ ├── delete_stories →
true (optional)│ ├── manage_direct_messages →
true (optional)│ └── manage_ranks →
true (optional)└── bot_admin_rights →
ChatAdminRights (optional)└──
ChatAdminRights├── change_info →
true (optional)├── post_messages →
true (optional)├── edit_messages →
true (optional)├── delete_messages →
true (optional)├── ban_users →
true (optional)├── invite_users →
true (optional)├── pin_messages →
true (optional)├── add_admins →
true (optional)├── anonymous →
true (optional)├── manage_call →
true (optional)├── other →
true (optional)├── manage_topics →
true (optional)├── post_stories →
true (optional)├── edit_stories →
true (optional)├── delete_stories →
true (optional)├── manage_direct_messages →
true (optional)└── manage_ranks →
true (optional)Example
RequestPeerTypeBroadcast(
)