copyWith method
MessageSendOptions
copyWith(
{ - InputSuggestedPostInfo? suggestedPostInfo,
- bool? disableNotification,
- bool? fromBackground,
- bool? protectContent,
- bool? allowPaidBroadcast,
- int? paidMessageStarCount,
- bool? updateOrderOfInstalledStickerSets,
- MessageSchedulingState? schedulingState,
- int? effectId,
- int? sendingId,
- 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,
);