Class TdApi.GetBotMediaPreviewInfo
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.BotMediaPreviewInfo>
dev.voroby.springframework.telegram.client.TdApi.GetBotMediaPreviewInfo
- Enclosing class:
- TdApi
Returns the list of media previews for the given language and the list of languages for which the bot has dedicated previews.
Returns BotMediaPreviewInfo
-
Field Summary
Modifier and TypeFieldDescriptionlong
Identifier of the target bot.static final int
Identifier uniquely determining type of the object.A two-letter ISO 639-1 language code for which to get previews. -
Constructor Summary
ConstructorDescriptionDefault 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, 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. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
botUserId
public long botUserIdIdentifier 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. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
GetBotMediaPreviewInfo
public 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.Returns
BotMediaPreviewInfo
-
GetBotMediaPreviewInfo
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.Returns
BotMediaPreviewInfo
- Parameters:
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.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-