add_paid_message_reaction()

Client.add_paid_message_reaction()

Adds the paid message 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 target message. If the message belongs to a media group, the reaction is set to the first non-deleted message in the group instead.

  • star_count (``int``, *optional*) – Number of Telegram Stars to be used for the reaction; 1-2500.

  • paid_reaction_type (:obj:`~pyrogram.types.PaidReactionType`, *optional*) – Type of the paid reaction; pass None if the user didn’t choose reaction type explicitly, for example, the reaction is set from the message bubble.

Returns:

On success, :obj:`~pyrogram.types.MessageReactions` (is returned.)

Example

# Add a paid reaction to a message
await app.add_paid_message_reaction(chat_id, message_id, 1)