Improve documentation.

This commit is contained in:
levlam 2024-07-19 15:02:32 +03:00
parent fceb1437d7
commit f45258eb66

View File

@ -10623,27 +10623,27 @@ sendWebAppCustomRequest bot_user_id:int53 method:string parameters:string = Cust
//@description Returns the list of media previews of a bot @bot_user_id Identifier of the target bot
getBotMediaPreviews bot_user_id:int53 = BotMediaPreviews;
//@description Adds a new media preview to the beginning of the list of bot's media previews. Returns the added preview. The total number of previews must not exceed getOption("bot_media_preview_count_max") for the given language
//@description Adds a new media preview to the beginning of the list of media previews of a bot. Returns the added preview after addition is completed server-side. The total number of previews must not exceed getOption("bot_media_preview_count_max") for the given language
//@bot_user_id Identifier of the target bot
//@language_code 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 with the same name as returned by getLocalizationTargetInfo
//@content Content of the added preview
addBotMediaPreview bot_user_id:int53 language_code:string content:InputStoryContent = StoryContent;
//@description Replaces media preview in the list of bot's media previews. Returns the new preview
//@description Replaces media preview in the list of media previews of a bot. Returns the new preview after edit is completed server-side
//@bot_user_id Identifier of the target bot
//@language_code Language code of the media preview to edit
//@file_id File identifier of the media to replace
//@content Content of the new preview
editBotMediaPreview bot_user_id:int53 language_code:string file_id:int32 content:InputStoryContent = StoryContent;
//@description Changes order of media previews in the list of bot's media previews
//@description Changes order of media previews in the list of media previews of a bot
//@bot_user_id Identifier of the target bot
//@language_code Language code of the media previews to reorder
//@file_ids File identifiers of the media in the new order
reorderBotMediaPreviews bot_user_id:int53 language_code:string file_ids:vector<int32> = Ok;
//@description Delete media previews from the list of bot's media previews
//@description Delete media previews from the list of media previews of a bot
//@bot_user_id Identifier of the target bot
//@language_code Language code of the media previews to delete
//@file_ids File identifiers of the media to delete