send_story_reaction()

async Client.send_story_reaction()

React to a story.

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target chat.

  • story_id (int) – Identifier of the story to react to.

  • emoji (int | str, optional) – Reaction emoji. An int is the document id of a custom emoji. Pass None as emoji (default) to retract the reaction.

  • add_to_recent (bool, optional) – Pass True to add the chosen reaction to the recently used ones. Defaults to False.

Returns:

bool – On success, True is returned.

Example

# Send a reaction to a story
await app.send_story_reaction(chat_id, story_id, "🔥")

# Retract a reaction from a story
await app.send_story_reaction(chat_id, story_id)