messages.SendReaction

class pyrogram.raw.functions.messages.SendReaction

React to message.

Details:
  • Layer: 223

  • 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
├── bigtrue (optional)
├── add_to_recenttrue (optional)
├── 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
└── reactionVector < Reaction > (optional)
├── ReactionEmpty
├── ReactionEmoji
│ └── emoticonstring
│ └── document_idlong
└── ReactionPaid

Example

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