Layer 231
InputButtonTypeRequestPeer
Button that asks the user to choose one or more peers of the given type, as passed when creating a keyboard.
constructor
inputButtonTypeRequestPeer#3fe268fe flags:# name_requested:flags.0?true username_requested:flags.1?true photo_requested:flags.2?true button_id:int peer_type:RequestPeerType max_quantity:int = ButtonType;
Parameters
| Name | Type | Description |
|---|---|---|
| NameRequested | flags.0?true | Whether the name of the chosen peers should be sent to the bot |
| UsernameRequested | flags.1?true | Whether the username of the chosen peers should be sent to the bot |
| PhotoRequested | flags.2?true | Whether the photo of the chosen peers should be sent to the bot |
| 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
ButtonTypeGogram Example
// Creating InputButtonTypeRequestPeer constructor obj := &tg.InputButtonTypeRequestPeer{ ButtonId: 42, PeerType: &tg.RequestPeerTypeBroadcast{}, MaxQuantity: 20, // Optional fields: // NameRequested: true, // UsernameRequested: true, // PhotoRequested: true, }