stories.SendReaction

class pyrogram.raw.functions.stories.SendReaction

React to a story.

Details:
  • Layer: 227

  • ID: 7FD736B2

Parameters:
  • peer (InputPeer) – The peer that sent the story

  • story_id (int 32-bit) – ID of the story to react to

  • reaction (Reaction) – Reaction

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

Returns:

Updates

TL Schema

stories.sendReaction#7fd736b2
flags:#
add_to_recent:flags.0?true
peer:InputPeer
story_id:int
reaction:Reaction

= Updates

Parameter Tree

SendReaction
├── 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
├── story_id → int
└── reaction → Reaction
├── ReactionEmpty
├── ReactionEmoji
│ └── emoticon → string
│ └── document_id → long
└── ReactionPaid

Example

await app.invoke(
    SendReaction(
        add_to_recent=None,
        peer=await app.resolve_peer(chat_id),
        story_id=0,
        reaction=ReactionEmpty(),
    )
)