telegram api method · layer 229 · #6c5cf2a7
messages.sendBotRequestedPeer
Send one or more chosen peers, as requested by a keyboardButtonRequestPeer button.
definition
messages.sendBotRequestedPeer#6c5cf2a7 flags:# peer:InputPeer msg_id:flags.0?int webapp_req_id:flags.1?string button_id:int requested_peers:Vector<InputPeer> = Updates;
parameters
| name | type | description |
|---|---|---|
flags | # | |
peer | InputPeer | The bot that sent the keyboardButtonRequestPeer button. |
msg_id | int | ID of the message that contained the reply keyboard with the keyboardButtonRequestPeer button. |
webapp_req_id | string | |
button_id | int | The button_id field from the keyboardButtonRequestPeer constructor. |
requested_peers | Vector<InputPeer> | The chosen peers. |
returns
errors (4)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 400 | MESSAGE_ID_INVALID | The provided message id is invalid. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
history
present in layers 152–229 · constructor id changed 2×
| id | layers |
|---|---|
| #fe38d01b | 152–168 |
| #91b2d060 | 169–223 |
| #6c5cf2a7 | 224–229 |