messages.SendPaidReaction#

class pyrogram.raw.functions.messages.SendPaidReaction#

Sends one or more paid Telegram Star reactions , transferring Telegram Stars to a channel’s balance.

Details:
  • Layer: 214

  • ID: 58BBCB50

Parameters:
  • peer (InputPeer) – The channel

  • msg_id (int 32-bit) – The message to react to

  • count (int 32-bit) – The number of stars to send (each will increment the reaction counter by one).

  • random_id (int 64-bit) – Unique client message ID required to prevent message resending. Note: this argument must be composed of a 64-bit integer where the first 32 bits are random, and the remaining 32 bits are equal to the current unixtime, i.e. uint64_t random_id = (time() << 32) | ((uint64_t)random_uint32_t()): this differs from the random_id format of all other methods in the API, which just take 64 random bits.

  • private (PaidReactionPrivacy, optional) – Each post with star reactions has a leaderboard with the top senders, but users can opt out of appearing there if they prefer more privacy. Not populating this field will use the default reaction privacy, stored on the server and synced to clients using updatePaidReactionPrivacy (see here for more info).

Returns:

Updates