Story.react()
- Story.react()
Bound method react of
Story
.Use as a shortcut for:
await client.set_reaction( chat_id=chat_id, story_id=message.id, reaction=[ReactionTypeEmoji(emoji="👍")] )
Example
# Send a reaction await story.react([ReactionTypeEmoji(emoji="👍")]) # Retract a reaction await story.react()
- Parameters:
reaction (
int
|str
, optional) – New list of reaction types to set on the message. Pass None as emoji (default) to retract the reaction.add_to_recent (
bool
, optional) – Pass True if the reaction should appear in the recently used reactions. This option is applicable only for users. Defaults to True.
- Returns:
On success,
MessageReactions
– is returned.- Raises:
RPCError – In case of a Telegram RPC error.