public static class TdApi.SetChatAffiliateProgram extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
long |
chatId
Identifier of the chat with an owned bot for which affiliate program is changed.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.AffiliateProgramParameters |
parameters
Parameters of the affiliate program; pass null to close the currently active program.
|
| Constructor and Description |
|---|
SetChatAffiliateProgram()
Default 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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public TdApi.AffiliateProgramParameters parameters
public static final int CONSTRUCTOR
public SetChatAffiliateProgram()
Returns Ok
public SetChatAffiliateProgram(long chatId,
TdApi.AffiliateProgramParameters parameters)
Returns Ok
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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object