public static class TdApi.AddBotMediaPreview extends TdApi.Function<TdApi.BotMediaPreview>
Returns BotMediaPreview
| Modifier and Type | Field and Description |
|---|---|
long |
botUserId
Identifier of the target bot.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.InputStoryContent |
content
Content of the added preview.
|
java.lang.String |
languageCode
A two-letter ISO 639-1 language code for which preview is added.
|
| Constructor and Description |
|---|
AddBotMediaPreview()
Default constructor for a function, which adds a new media preview to the beginning of the list of media previews of a bot.
|
AddBotMediaPreview(long botUserId,
java.lang.String languageCode,
TdApi.InputStoryContent content)
Creates a function, which adds a new media preview to the beginning of the list of media previews of a bot.
|
| 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 TdApi.InputStoryContent content
public static final int CONSTRUCTOR
public AddBotMediaPreview()
Returns BotMediaPreview
public AddBotMediaPreview(long botUserId,
java.lang.String languageCode,
TdApi.InputStoryContent content)
Returns BotMediaPreview
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 preview is added. If empty, then the preview will be shown to all users for whose languages there are no dedicated previews. If non-empty, then there must be an official language pack of the same name, which is returned by getLocalizationTargetInfo.content - Content of the added preview.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object