ConnectedBotStarRef

class pyrogram.raw.types.ConnectedBotStarRef

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

Constructor of ConnectedBotStarRef.

Details:
  • Layer: 223

  • 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.

TL Schema

connectedBotStarRef#19a13f71
flags:#
revoked:flags.1?true
url:string
date:int
bot_id:long
commission_permille:int
duration_months:flags.0?int
participants:long
revenue:long

= ConnectedBotStarRef

Parameter Tree

ConnectedBotStarRef
├── revokedtrue (optional)
├── urlstring
├── dateint
├── bot_idlong
├── commission_permilleint
├── duration_monthsint (optional)
├── participantslong
└── revenuelong

Example

ConnectedBotStarRef(
    url="https://google.com",
    date=0,
    bot_id=0,
    commission_permille=0,
    participants=0,
    revenue=0,
)