Layer 231
ButtonTypeRequestPeer
Button that asks the user to choose one or more peers of the given type and sends them to the bot.
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
ButtonTypeGogram Example
// Creating ButtonTypeRequestPeer constructor obj := &tg.ButtonTypeRequestPeer{ ButtonId: 42, PeerType: &tg.RequestPeerTypeBroadcast{}, MaxQuantity: 20, }