Layer 231
constructor
buttonTypeRequestPeer#4f58a237 flags:# button_id:int peer_type:RequestPeerType max_quantity:int = ButtonType;

Parameters

Name Type Description
ButtonId int Button ID, passed back to the bot together with the chosen peers
PeerType RequestPeerType Filter for the kind of peers that can be chosen
MaxQuantity int Maximum number of peers that can be chosen

Returns

ButtonType

Gogram Example

// Creating ButtonTypeRequestPeer constructor
obj := &tg.ButtonTypeRequestPeer{
    ButtonId: 42,
    PeerType: &tg.RequestPeerTypeBroadcast{},
    MaxQuantity: 20,
}