Skip to content

addPendingPaidMessageReaction

Function · TDLib 1.8.67 · d1085f9c

Adds the paid message reaction to a message. Use getMessageAvailableReactions to check whether the reaction is available for the message

addPendingPaidMessageReaction(
  chat_id: int53,
  message_id: int53,
  star_count: int53,
  type: PaidReactionType
) → Ok

chat_id

int53

Identifier of the chat to which the message belongs

message_id

int53

Identifier of the message

star_count

int53

Number of Telegram Stars to be used for the reaction. The total number of pending paid reactions must not exceed getOption("paid_reaction_star_count_max")

type

PaidReactionType

Type of the paid reaction; pass null if the user didn't choose reaction type explicitly, for example, the reaction is set from the message bubble