public static class TdApi.ConnectChatAffiliateProgram extends TdApi.Function<TdApi.ChatAffiliateProgram>
Returns ChatAffiliateProgram
| Modifier and Type | Field and Description |
|---|---|
long |
botUserId
Identifier of the bot, which affiliate program is connected.
|
long |
chatId
Identifier of the chat to which the affiliate program will be connected.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
| Constructor and Description |
|---|
ConnectChatAffiliateProgram()
Default constructor for a function, which connects an affiliate program to the given chat.
|
ConnectChatAffiliateProgram(long chatId,
long botUserId)
Creates a function, which connects an affiliate program to the given chat.
|
| 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 ConnectChatAffiliateProgram()
Returns ChatAffiliateProgram
public ConnectChatAffiliateProgram(long chatId,
long botUserId)
Returns ChatAffiliateProgram
chatId - Identifier of the chat to which the affiliate program will be 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, which affiliate program is connected.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object