stories.SendReaction

class pyrogram.raw.functions.stories.SendReaction

React to a story.

Details:
  • Layer: 223

  • 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_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
├── story_idint
└── reactionReaction
├── ReactionEmpty
├── ReactionEmoji
│ └── emoticonstring
│ └── document_idlong
└── ReactionPaid

Example

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