messages.SendReaction

class pyrogram.raw.functions.messages.SendReaction

React to message.

Details:
  • Layer: 227

  • ID: D30D78D4

Parameters:
  • peer (InputPeer) – Peer

  • msg_id (int 32-bit) – Message ID to react to

  • big (bool, optional) – Whether a bigger and longer reaction should be shown

  • add_to_recent (bool, optional) – Whether to add this reaction to the recent reactions list ».

  • reaction (List of Reaction, optional) – A list of reactions (doesn’t accept reactionPaid constructors, use messages.sendPaidReaction to send paid reactions, instead).

Returns:

Updates

TL Schema

messages.sendReaction#d30d78d4
flags:#
big:flags.1?true
add_to_recent:flags.2?true
peer:InputPeer
msg_id:int
reaction:flags.0?Vector<Reaction>

= Updates

Parameter Tree

SendReaction
├── big → true (optional)
├── add_to_recent → true (optional)
├── peer → 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
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
├── msg_id → int
└── reaction → Vector < Reaction > (optional)
├── ReactionEmpty
├── ReactionEmoji
│ └── emoticon → string
│ └── document_id → long
└── ReactionPaid

Example

await app.invoke(
    SendReaction(
        big=None,
        add_to_recent=None,
        peer=await app.resolve_peer(chat_id),
        msg_id=0,
        reaction=[
                ReactionEmpty()
            ],
    )
)