copyWith method

InlineQueryResultMpeg4Gif copyWith({
  1. String? id,
  2. String? mpeg4Url,
  3. int? mpeg4Width,
  4. int? mpeg4Height,
  5. int? mpeg4Duration,
  6. String? thumbnailUrl,
  7. String? thumbnailMimeType,
  8. String? title,
  9. String? caption,
  10. ParseMode? parseMode,
  11. List<MessageEntity>? captionEntities,
  12. InlineKeyboardMarkup? replyMarkup,
  13. InputMessageContent? inputMessageContent,
  14. bool? showCaptionAboveMedia,
})

Copy method

Implementation

InlineQueryResultMpeg4Gif copyWith({
  String? id,
  String? mpeg4Url,
  int? mpeg4Width,
  int? mpeg4Height,
  int? mpeg4Duration,
  String? thumbnailUrl,
  String? thumbnailMimeType,
  String? title,
  String? caption,
  ParseMode? parseMode,
  List<MessageEntity>? captionEntities,
  InlineKeyboardMarkup? replyMarkup,
  InputMessageContent? inputMessageContent,
  bool? showCaptionAboveMedia,
}) {
  return InlineQueryResultMpeg4Gif(
    id: id ?? this.id,
    mpeg4Url: mpeg4Url ?? this.mpeg4Url,
    mpeg4Width: mpeg4Width ?? this.mpeg4Width,
    mpeg4Height: mpeg4Height ?? this.mpeg4Height,
    mpeg4Duration: mpeg4Duration ?? this.mpeg4Duration,
    thumbnailUrl: thumbnailUrl ?? this.thumbnailUrl,
    thumbnailMimeType: thumbnailMimeType ?? this.thumbnailMimeType,
    title: title ?? this.title,
    caption: caption ?? this.caption,
    parseMode: parseMode ?? this.parseMode,
    captionEntities: captionEntities ?? this.captionEntities,
    replyMarkup: replyMarkup ?? this.replyMarkup,
    inputMessageContent: inputMessageContent ?? this.inputMessageContent,
    showCaptionAboveMedia:
        showCaptionAboveMedia ?? this.showCaptionAboveMedia,
  );
}