copyWith method

MessageSendOptions copyWith({
  1. InputSuggestedPostInfo? suggestedPostInfo,
  2. bool? disableNotification,
  3. bool? fromBackground,
  4. bool? protectContent,
  5. bool? allowPaidBroadcast,
  6. int? paidMessageStarCount,
  7. bool? updateOrderOfInstalledStickerSets,
  8. MessageSchedulingState? schedulingState,
  9. int? effectId,
  10. int? sendingId,
  11. bool? onlyPreview,
})

Implementation

MessageSendOptions copyWith({
  InputSuggestedPostInfo? suggestedPostInfo,
  bool? disableNotification,
  bool? fromBackground,
  bool? protectContent,
  bool? allowPaidBroadcast,
  int? paidMessageStarCount,
  bool? updateOrderOfInstalledStickerSets,
  MessageSchedulingState? schedulingState,
  int? effectId,
  int? sendingId,
  bool? onlyPreview,
}) =>
    MessageSendOptions(
      suggestedPostInfo: suggestedPostInfo ?? this.suggestedPostInfo,
      disableNotification: disableNotification ?? this.disableNotification,
      fromBackground: fromBackground ?? this.fromBackground,
      protectContent: protectContent ?? this.protectContent,
      allowPaidBroadcast: allowPaidBroadcast ?? this.allowPaidBroadcast,
      paidMessageStarCount: paidMessageStarCount ?? this.paidMessageStarCount,
      updateOrderOfInstalledStickerSets: updateOrderOfInstalledStickerSets ??
          this.updateOrderOfInstalledStickerSets,
      schedulingState: schedulingState ?? this.schedulingState,
      effectId: effectId ?? this.effectId,
      sendingId: sendingId ?? this.sendingId,
      onlyPreview: onlyPreview ?? this.onlyPreview,
    );