ConnectedBotStarRef#

class pyrogram.raw.types.ConnectedBotStarRef#

Info about an active affiliate program we have with a Mini App

Constructor of ConnectedBotStarRef.

Details:
  • Layer: 198

  • ID: 19A13F71

Parameters:
  • url (str) – Referral link to be shared

  • date (int 32-bit) – When did we affiliate with bot_id

  • bot_id (int 64-bit) – ID of the mini app that created the affiliate program

  • commission_permille (int 32-bit) – The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by bot_id

  • participants (int 64-bit) – The number of users that used the affiliate program

  • revenue (int 64-bit) – The number of Telegram Stars that were earned by the affiliate program

  • revoked (bool, optional) – If set, this affiliation was revoked by the affiliate using payments.editConnectedStarRefBot, or by the affiliation program owner using bots.updateStarRefProgram

  • duration_months (int 32-bit, optional) – Number of months the program will be active; if not set, there is no expiration date.