copyWith method
InputMessageForwarded
copyWith({
- int? fromChatId,
- int? messageId,
- MessageCopyOptions? copyOptions()?,
override
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
@override
InputMessageForwarded copyWith({
int? fromChatId,
int? messageId,
bool? inGameShare,
MessageCopyOptions? Function()? copyOptions,
}) =>
InputMessageForwarded(
fromChatId: fromChatId ?? this.fromChatId,
messageId: messageId ?? this.messageId,
inGameShare: inGameShare ?? this.inGameShare,
copyOptions: copyOptions != null ? copyOptions() : this.copyOptions,
);