public static class TdApi.GetChatAffiliateProgram extends TdApi.Function<TdApi.ChatAffiliateProgram>
Returns ChatAffiliateProgram
| Modifier and Type | Field and Description |
|---|---|
long |
botUserId
Identifier of the bot that created the program.
|
long |
chatId
Identifier of the chat for which the affiliate program was connected.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
| Constructor and Description |
|---|
GetChatAffiliateProgram()
Default constructor for a function, which returns an affiliate program that were connected to the given chat by identifier of the bot that created the program.
|
GetChatAffiliateProgram(long chatId,
long botUserId)
Creates a function, which returns an affiliate program that were connected to the given chat by identifier of the bot that created the program.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public long botUserId
public static final int CONSTRUCTOR
public GetChatAffiliateProgram()
Returns ChatAffiliateProgram
public GetChatAffiliateProgram(long chatId,
long botUserId)
Returns ChatAffiliateProgram
chatId - Identifier of the chat for which the affiliate program was connected. Can be an identifier of the Saved Messages chat, of a chat with an owned bot, or of a channel chat with canPostMessages administrator right.botUserId - Identifier of the bot that created the program.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object