messages.SendBotRequestedPeer

class pyrogram.raw.functions.messages.SendBotRequestedPeer

Send one or more chosen peers, as requested by a keyboardButtonRequestPeer button.

Details:
  • Layer: 223

  • ID: 91B2D060

Parameters:
  • peer (InputPeer) – The bot that sent the keyboardButtonRequestPeer button.

  • msg_id (int 32-bit) – ID of the message that contained the reply keyboard with the keyboardButtonRequestPeer button.

  • button_id (int 32-bit) – The button_id field from the keyboardButtonRequestPeer constructor.

  • requested_peers (List of InputPeer) – The chosen peers.

Returns:

Updates

TL Schema

messages.sendBotRequestedPeer#91b2d060
peer:InputPeer
msg_id:int
button_id:int
requested_peers:Vector<InputPeer>

= Updates

Parameter Tree

SendBotRequestedPeer
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── msg_idint
├── button_idint
└── requested_peersVector < InputPeer >
├── InputPeerEmpty
├── InputPeerSelf
├── InputPeerChat
│ └── chat_idlong
├── InputPeerUser
│ ├── user_idlong
│ └── access_hashlong
│ ├── channel_idlong
│ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── user_idlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── channel_idlong

Example

await app.invoke(
    SendBotRequestedPeer(
        peer=await app.resolve_peer(chat_id),
        msg_id=0,
        button_id=0,
        requested_peers=[
                await app.resolve_peer(chat_id)
            ],
    )
)