send_reaction()

Client.send_reaction()

Send a reaction to a message.

Parameters
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target chat.

  • message_id (int) – Identifier of the message.

  • emoji (str, optional) – Reaction emoji. Pass “” as emoji (default) to retract the reaction.

Returns

bool – On success, True is returned.

Example

# Send a reaction
app.send_reaction(chat_id, message_id, "🔥")

# Retract a reaction
app.send_reaction(chat_id, message_id)