Skip to content

editBotMediaPreview

Function · TDLib 1.8.67 · d1085f9c

Replaces media preview in the list of media previews of a bot. Returns the new preview after edit is completed server-side

editBotMediaPreview(
  bot_user_id: int53,
  language_code: string,
  file_id: int32,
  content: InputStoryContent
) → BotMediaPreview

bot_user_id

int53

Identifier of the target bot. The bot must be owned and must have the main Web App

language_code

string

Language code of the media preview to edit

file_id

int32

File identifier of the media to replace

content

InputStoryContent

Content of the new preview