public static class TdApi.ChatAffiliateProgram extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
long |
botUserId
User identifier of the bot created the program.
|
int |
connectionDate
Point in time (Unix timestamp) when the affiliate program was connected.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
isDisconnected
True, if the program was canceled by the bot, or disconnected by the chat owner and isn't available anymore.
|
TdApi.AffiliateProgramParameters |
parameters
The parameters of the affiliate program.
|
long |
revenueStarCount
The number of Telegram Stars that were earned by the affiliate program.
|
java.lang.String |
url
The link that can be used to refer users if the program is still active.
|
long |
userCount
The number of users that used the affiliate program.
|
| Constructor and Description |
|---|
ChatAffiliateProgram()
Describes an affiliate program that was connected to a chat.
|
ChatAffiliateProgram(java.lang.String url,
long botUserId,
TdApi.AffiliateProgramParameters parameters,
int connectionDate,
boolean isDisconnected,
long userCount,
long revenueStarCount)
Describes an affiliate program that was connected to a chat.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic java.lang.String url
public long botUserId
public TdApi.AffiliateProgramParameters parameters
public int connectionDate
public boolean isDisconnected
public long userCount
public long revenueStarCount
public static final int CONSTRUCTOR
public ChatAffiliateProgram()
public ChatAffiliateProgram(java.lang.String url,
long botUserId,
TdApi.AffiliateProgramParameters parameters,
int connectionDate,
boolean isDisconnected,
long userCount,
long revenueStarCount)
url - The link that can be used to refer users if the program is still active.botUserId - User identifier of the bot created the program.parameters - The parameters of the affiliate program.connectionDate - Point in time (Unix timestamp) when the affiliate program was connected.isDisconnected - True, if the program was canceled by the bot, or disconnected by the chat owner and isn't available anymore.userCount - The number of users that used the affiliate program.revenueStarCount - The number of Telegram Stars that were earned by the affiliate program.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object