copyWith method

EditMessageCaption copyWith({
  1. int? chatId,
  2. int? messageId,
  3. ReplyMarkup? replyMarkup,
  4. FormattedText? caption,
})

Implementation

EditMessageCaption copyWith({
  int? chatId,
  int? messageId,
  ReplyMarkup? replyMarkup,
  FormattedText? caption,
}) =>
    EditMessageCaption(
      chatId: chatId ?? this.chatId,
      messageId: messageId ?? this.messageId,
      replyMarkup: replyMarkup ?? this.replyMarkup,
      caption: caption ?? this.caption,
    );