MessageActionRequestedPeer

class pyrogram.raw.types.MessageActionRequestedPeer

Contains info about one or more peers that the we (the user) shared with the bot after clicking on a keyboardButtonRequestPeer button (service message sent by the user).

Constructor of MessageAction.

Details:
  • Layer: 223

  • ID: 31518E9B

Parameters:
  • button_id (int 32-bit) – button_id contained in the keyboardButtonRequestPeer

  • peers (List of Peer) – The shared peers

TL Schema

messageActionRequestedPeer#31518e9b
button_id:int
peers:Vector<Peer>

= MessageAction

Parameter Tree

MessageActionRequestedPeer
├── button_idint
└── peersVector < Peer >
├── PeerUser
│ └── user_idlong
├── PeerChat
│ └── chat_idlong
└── PeerChannel
└── channel_idlong

Example

MessageActionRequestedPeer(
    button_id=0,
    peers=[
            PeerUser(user_id=0)
        ],
)