AddBotMediaPreview constructor

const AddBotMediaPreview({
  1. required int botUserId,
  2. required String languageCode,
  3. required InputStoryContent content,
})

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

Implementation

const AddBotMediaPreview({
  required this.botUserId,
  required this.languageCode,
  required this.content,
});