Enclosing class:
TdApi
Replaces media preview in the list of media previews of a bot. Returns the new preview after edit is completed server-side.
Returns BotMediaPreview
Field Summary
Fields
long
Identifier of the target bot.
static final int
Identifier uniquely determining type of the object.
Content of the new preview.
int
File identifier of the media to replace.
Language code of the media preview to edit.
Constructor Summary
Constructors
Default constructor for a function, which replaces media preview in the list of media previews of a bot.
Creates a function, which replaces media preview in the list of media previews of a bot.
Method Summary
All Methods Instance Methods Concrete Methods
int
Returns an identifier uniquely determining type of the object.
Field Details
botUserId
public long botUserId
Identifier of the target bot. The bot must be owned and must have the main Web App.
languageCode
Language code of the media preview to edit.
fileId
public int fileId
File identifier of the media to replace.
content
Content of the new preview.
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.
See Also:
Constructor Details
EditBotMediaPreview
public EditBotMediaPreview ()
Default constructor for a function, which replaces media preview in the list of media previews of a bot. Returns the new preview after edit is completed server-side.
Returns BotMediaPreview
EditBotMediaPreview
Creates a function, which replaces media preview in the list of media previews of a bot. Returns the new preview after edit is completed server-side.
Returns BotMediaPreview
Parameters:
botUserId
- Identifier of the target bot. The bot must be owned and must have the main Web App.
languageCode
- Language code of the media preview to edit.
fileId
- File identifier of the media to replace.
content
- Content of the new preview.
Method Details
getConstructor
public int getConstructor ()
Returns an identifier uniquely determining type of the object.
Specified by:
getConstructor
in class TdApi.Object
Returns:
this.CONSTRUCTOR