send_paid_reaction()

Client.send_paid_reaction()

Send a paid reaction to a message.

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target chat.

  • message_id (int) – Identifier of the message.

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

  • privacy (PaidReactionPrivacy, optional) – Reaction privacy type.

  • send_as (int | str, optional) – Unique identifier (int) or username (str) of the send_as chat. Applicable when privacy is CHAT.

Returns:

bool – On success, True is returned.

Example

# Send paid reaction with 1 star
await app.send_paid_reaction(chat_id, message_id, amount=1)