Layer 220
method Users
messages.sendBotRequestedPeer#91b2d060 peer:InputPeer msg_id:int button_id:int requested_peers:Vector<InputPeer> = Updates;

Parameters

Name Type Description
Peer InputPeer The bot that sent the keyboard Button Request Peer button.
MsgId int ID of the message that contained the reply keyboard with the keyboard Button Request Peer button.
ButtonId int The button_id field from the keyboard Button Request Peer constructor.
RequestedPeers Vector<InputPeer> The chosen peers.

Returns

Updates

Possible Errors

Code Type Description
400 MESSAGE_ID_INVALID The provided message id is invalid.
400 PEER_ID_INVALID The provided peer id is invalid.

Gogram Example

// MessagesSendBotRequestedPeer - positional arguments
result, err := client.MessagesSendBotRequestedPeer(&tg.InputPeerUser{UserID: int64(123456789)}, 0, 0, []tg.InputPeer{&tg.InputPeerUser{UserID: int64(123456789)}})
if err != nil {
    // handle error
}
// result is *tg.Updates