Layer 220
constructor
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;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Creator flags.0?true Whether to allow only choosing channels that were created by the current user.
HasUsername flags.3?Bool If specified, allows only choosing channels with or without a username, according to the value of Bool.
UserAdminRights flags.1?ChatAdminRights If specified, allows only choosing channels where the current user is an admin with at least the specified admin rights.
BotAdminRights flags.2?ChatAdminRights If specified, allows only choosing channels where the bot is an admin with at least the specified admin rights.

Returns

RequestPeerType

Gogram Example

// Creating RequestPeerTypeBroadcast constructor
obj := &tg.RequestPeerTypeBroadcast{

    // Optional fields:
    // Creator: true,
    // HasUsername: true,
    // UserAdminRights: &tg.ChatAdminRights{},
    // BotAdminRights: &tg.ChatAdminRights{},
}