Layer 227
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 flags .0? int ID of the message that contained the reply keyboard with the keyboard Button Request Peer button.
WebappReqId flags .1? string If the button was prepared for a Mini App, the Mini App request ID returned by bots. request Web View Button.
ButtonId int The button_id field from the keyboard Button Request Peer constructor.
RequestedPeers Vector < InputPeer > The chosen peers.

Returns

Updates

Gogram Example

// MessagesSendBotRequestedPeer - positional arguments
result, err := client.MessagesSendBotRequestedPeer(&tg.InputPeerUser{UserID: int64(777000)}, nil, "Hello, World!", 42, &tg.VectorInputPeer{})
if err != nil {
    // handle error
}
// result is *tg.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.