public static class TdApi.GetBotMediaPreviewInfo extends TdApi.Function<TdApi.BotMediaPreviewInfo>
Returns BotMediaPreviewInfo
| Modifier and Type | Field and Description |
|---|---|
long |
botUserId
Identifier of the target bot.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
languageCode
A two-letter ISO 639-1 language code for which to get previews.
|
| Constructor and Description |
|---|
GetBotMediaPreviewInfo()
Default constructor for a function, which returns the list of media previews for the given language and the list of languages for which the bot has dedicated previews.
|
GetBotMediaPreviewInfo(long botUserId,
java.lang.String languageCode)
Creates a function, which returns the list of media previews for the given language and the list of languages for which the bot has dedicated previews.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long botUserId
public java.lang.String languageCode
public static final int CONSTRUCTOR
public GetBotMediaPreviewInfo()
Returns BotMediaPreviewInfo
public GetBotMediaPreviewInfo(long botUserId,
java.lang.String languageCode)
Returns BotMediaPreviewInfo
botUserId - Identifier of the target bot. The bot must be owned and must have the main Web App.languageCode - A two-letter ISO 639-1 language code for which to get previews. If empty, then default previews are returned.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object