messages.SendBotRequestedPeer
- class pyrogram.raw.functions.messages.SendBotRequestedPeer
Send one or more chosen peers, as requested by a keyboardButtonRequestPeer button.
- Details:
Layer:
224ID:
6C5CF2A7
- Parameters:
peer (
InputPeer) – The bot that sent the keyboardButtonRequestPeer button.button_id (
int32-bit) – The button_id field from the keyboardButtonRequestPeer constructor.requested_peers (List of
InputPeer) – The chosen peers.msg_id (
int32-bit, optional) – ID of the message that contained the reply keyboard with the keyboardButtonRequestPeer button.webapp_req_id (
str, optional) – N/A
- Returns:
TL Schema
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
Parameter Tree
SendBotRequestedPeer
├── peer →
InputPeer│ ├──
InputPeerEmpty│ ├──
InputPeerSelf│ ├──
InputPeerChat│ │ └── chat_id →
long│ ├──
InputPeerUser│ │ ├── user_id →
long│ │ └── access_hash →
long│ ├──
InputPeerChannel│ │ ├── channel_id →
long│ │ └── access_hash →
long│ ├──
InputPeerUserFromMessage│ │ ├── peer →
InputPeer│ │ │ ├──
InputPeerEmpty│ │ │ ├──
InputPeerSelf│ │ │ ├──
InputPeerChat│ │ │ ├──
InputPeerUser│ │ │ ├──
InputPeerChannel│ │ │ ├──
InputPeerUserFromMessage│ │ │ └──
InputPeerChannelFromMessage│ │ ├── msg_id →
int│ │ └── user_id →
long│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── channel_id →
long├── msg_id →
int (optional)├── webapp_req_id →
string (optional)├── button_id →
int└── requested_peers →
Vector < InputPeer >├──
InputPeerEmpty├──
InputPeerSelf├──
InputPeerChat│ └── chat_id →
long├──
InputPeerUser│ ├── user_id →
long│ └── access_hash →
long├──
InputPeerChannel│ ├── channel_id →
long│ └── access_hash →
long│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── user_id →
long├── peer →
InputPeer│ ├──
InputPeerEmpty│ ├──
InputPeerSelf│ ├──
InputPeerChat│ ├──
InputPeerUser│ ├──
InputPeerChannel│ ├──
InputPeerUserFromMessage├── msg_id →
int└── channel_id →
longExample
await app.invoke(
SendBotRequestedPeer(
peer=await app.resolve_peer(chat_id),
msg_id=0,
webapp_req_id="text",
button_id=0,
requested_peers=[
await app.resolve_peer(chat_id)
],
)
)