Message.react()

Message.react()

Bound method react of Message.

Use as a shortcut for:

await client.send_reaction(
    chat_id=chat_id,
    message_id=message.id,
    emoji="🔥"
)

Example

await message.react(emoji="🔥")
Parameters:
  • emoji (str, optional) – Reaction emoji. Pass “” as emoji (default) to retract the reaction.

  • big (bool, optional) – Pass True to show a bigger and longer reaction. Defaults to False.

  • add_to_recent (bool, optional) – Pass True if the reaction should appear in the recently used reactions. This option is applicable only for users.

Returns:

obj: ~pyrogram.types.MessageReactions: On success, True is returned.

Raises:

RPCError – In case of a Telegram RPC error.