copyWith method
Copy method
Implementation
InlineQueryResultGif copyWith({
String? id,
String? gifUrl,
int? gifWidth,
int? gifHeight,
int? gifDuration,
String? thumbnailUrl,
String? thumbnailMimeType,
String? title,
String? caption,
ParseMode? parseMode,
List<MessageEntity>? captionEntities,
InlineKeyboardMarkup? replyMarkup,
InputMessageContent? inputMessageContent,
bool? showCaptionAboveMedia,
}) {
return InlineQueryResultGif(
id: id ?? this.id,
gifUrl: gifUrl ?? this.gifUrl,
gifWidth: gifWidth ?? this.gifWidth,
gifHeight: gifHeight ?? this.gifHeight,
gifDuration: gifDuration ?? this.gifDuration,
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,
);
}