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.

Returns:

bool – On success, True is returned.

Raises:

RPCError – In case of a Telegram RPC error.