send_paid_reaction()

Client.send_paid_reaction()

Use this method to send paid reactions on a channel message.

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target chat. You can also use chat public link in form of t.me/<username> (str).

  • message_id (int) – Identifier of the target message. If the message belongs to a media group, the reaction is set to the first non-deleted message in the group instead.

  • amount (int) – Amount of stars to send.

  • anonymous (bool, optional) – Pass True to hide yourself from top senders list.

Returns:

MessageReactions – On success, MessageReactions is returned.

Example

# Send a paid reaction
await app.send_paid_reaction(chat_id, message_id=message_id, amount=5)