Link Search Menu Expand Document

Constructor: requestPeerTypeBroadcast

Back to constructors index

Choose a channel

Attributes:

NameTypeRequiredDescription
creatorBoolOptionalWhether to allow only choosing channels that were created by the current user.
has_usernameBoolOptionalIf specified, allows only choosing channels with or without a username, according to the value of Bool.
user_admin_rightsChatAdminRightsOptionalIf specified, allows only choosing channels where the current user is an admin with at least the specified admin rights.
bot_admin_rightsChatAdminRightsOptionalIf specified, allows only choosing channels where the bot is an admin with at least the specified admin rights.

Type: RequestPeerType

Example:

$requestPeerTypeBroadcast = ['_' => 'requestPeerTypeBroadcast', 'creator' => Bool, 'has_username' => Bool, 'user_admin_rights' => ChatAdminRights, 'bot_admin_rights' => ChatAdminRights];