StarRefProgram#

class pyrogram.raw.types.StarRefProgram#

Indo about an affiliate program offered by a bot

Constructor of StarRefProgram.

Details:
  • Layer: 198

  • ID: DD0C66F2

Parameters:
  • bot_id (int 64-bit) – ID of the bot that offers the program

  • commission_permille (int 32-bit) – An affiliate gets a commission of starRefProgram.commission_permille‰ Telegram Stars for every mini app transaction made by users they refer

  • duration_months (int 32-bit, optional) – An affiliate gets a commission for every mini app transaction made by users they refer, for duration_months months after a referral link is imported, starting the bot for the first time

  • end_date (int 32-bit, optional) – Point in time (Unix timestamp) when the affiliate program will be closed (optional, if not set the affiliate program isn’t scheduled to be closed)

  • daily_revenue_per_user (StarsAmount, optional) – The amount of daily revenue per user in Telegram Stars of the bot that created the affiliate program. To obtain the approximated revenue per referred user, multiply this value by commission_permille and divide by 1000.

Functions:

This object can be returned by 1 function.

bots.UpdateStarRefProgram

Create, edit or delete the affiliate program of a bot we own