Package org.drinkless.tdlib
Class TdApi.ConnectedAffiliateProgram
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.ConnectedAffiliateProgram
- Enclosing class:
- TdApi
Describes an affiliate program that was connected to an affiliate.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlong
User identifier of the bot created the program.int
Point in time (Unix timestamp) when the affiliate program was connected.static final int
Identifier uniquely determining type of the object.boolean
True, if the program was canceled by the bot, or disconnected by the chat owner and isn't available anymore.The parameters of the affiliate program.long
The number of Telegram Stars that were earned by the affiliate program.The link that can be used to refer users if the program is still active.long
The number of users that used the affiliate program. -
Constructor Summary
ConstructorsConstructorDescriptionDescribes an affiliate program that was connected to an affiliate.ConnectedAffiliateProgram
(String url, long botUserId, TdApi.AffiliateProgramParameters parameters, int connectionDate, boolean isDisconnected, long userCount, long revenueStarCount) Describes an affiliate program that was connected to an affiliate. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
url
The link that can be used to refer users if the program is still active. -
botUserId
public long botUserIdUser identifier of the bot created the program. -
parameters
The parameters of the affiliate program. -
connectionDate
public int connectionDatePoint in time (Unix timestamp) when the affiliate program was connected. -
isDisconnected
public boolean isDisconnectedTrue, if the program was canceled by the bot, or disconnected by the chat owner and isn't available anymore. -
userCount
public long userCountThe number of users that used the affiliate program. -
revenueStarCount
public long revenueStarCountThe number of Telegram Stars that were earned by the affiliate program. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ConnectedAffiliateProgram
public ConnectedAffiliateProgram()Describes an affiliate program that was connected to an affiliate. -
ConnectedAffiliateProgram
public ConnectedAffiliateProgram(String url, long botUserId, TdApi.AffiliateProgramParameters parameters, int connectionDate, boolean isDisconnected, long userCount, long revenueStarCount) Describes an affiliate program that was connected to an affiliate.- Parameters:
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.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-