messages.SendReaction
- class pyrogram.raw.functions.messages.SendReaction
React to message.
- Details:
Layer:
223ID:
D30D78D4
- Parameters:
peer (
InputPeer) – Peermsg_id (
int32-bit) – Message ID to react tobig (
bool, optional) – Whether a bigger and longer reaction should be shownadd_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:
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│ ├──
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└── reaction →
Vector < Reaction > (optional)├──
ReactionEmpty├──
ReactionEmoji│ └── emoticon →
string│ └── document_id →
long└──
ReactionPaidExample
await app.invoke(
SendReaction(
big=None,
add_to_recent=None,
peer=await app.resolve_peer(chat_id),
msg_id=0,
reaction=[
ReactionEmpty()
],
)
)