Package org.drinkless.tdlib
Class TdApi.SetChatAffiliateProgram
- Enclosing class:
- TdApi
Changes affiliate program for a bot.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongIdentifier of the chat with an owned bot for which affiliate program is changed.static final intIdentifier uniquely determining type of the object.Parameters of the affiliate program; pass null to close the currently active program. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which changes affiliate program for a bot.SetChatAffiliateProgram(long chatId, TdApi.AffiliateProgramParameters parameters) Creates a function, which changes affiliate program for a bot. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
chatId
public long chatIdIdentifier of the chat with an owned bot for which affiliate program is changed. -
parameters
Parameters of the affiliate program; pass null to close the currently active program. If there is an active program, then commission and program duration can only be increased. If the active program is scheduled to be closed, then it can't be changed anymore. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
SetChatAffiliateProgram
public SetChatAffiliateProgram()Default constructor for a function, which changes affiliate program for a bot.Returns
Ok -
SetChatAffiliateProgram
Creates a function, which changes affiliate program for a bot.Returns
Ok- Parameters:
chatId- Identifier of the chat with an owned bot for which affiliate program is changed.parameters- Parameters of the affiliate program; pass null to close the currently active program. If there is an active program, then commission and program duration can only be increased. If the active program is scheduled to be closed, then it can't be changed anymore.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-