ConnectedBotStarRef
- class pyrogram.raw.types.ConnectedBotStarRef
Info about an active affiliate program we have with a Mini App
Constructor of
ConnectedBotStarRef.- Details:
Layer:
223ID:
19A13F71
- Parameters:
url (
str) – Referral link to be shareddate (
int32-bit) – When did we affiliate with bot_idbot_id (
int64-bit) – ID of the mini app that created the affiliate programcommission_permille (
int32-bit) – The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by bot_idparticipants (
int64-bit) – The number of users that used the affiliate programrevenue (
int64-bit) – The number of Telegram Stars that were earned by the affiliate programrevoked (
bool, optional) – If set, this affiliation was revoked by the affiliate using payments.editConnectedStarRefBot, or by the affiliation program owner using bots.updateStarRefProgramduration_months (
int32-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
true (optional)stringintlongintint (optional)longlongExample
ConnectedBotStarRef(
url="https://google.com",
date=0,
bot_id=0,
commission_permille=0,
participants=0,
revenue=0,
)