copyWith method
MessageProperties
copyWith({
- bool? canAddOffer,
- bool? canAddTasks,
- bool? canBeApproved,
- bool? canBeCopied,
- bool? canBeCopiedToSecretChat,
- bool? canBeDeclined,
- bool? canBeDeletedOnlyForSelf,
- bool? canBeDeletedForAllUsers,
- bool? canBeEdited,
- bool? canBeForwarded,
- bool? canBePaid,
- bool? canBePinned,
- bool? canBeReplied,
- bool? canBeRepliedInAnotherChat,
- bool? canBeSaved,
- bool? canDeleteReactions,
- bool? canEditMedia,
- bool? canEditSchedulingState,
- bool? canEditSuggestedPostInfo,
- bool? canGetAuthor,
- bool? canGetEmbeddingCode,
- bool? canGetLink,
- bool? canGetMediaTimestampLinks,
- bool? canGetMessageThread,
- bool? canGetPollVoteStatistics,
- bool? canGetReadDate,
- bool? canGetStatistics,
- bool? canGetVideoAdvertisements,
- bool? canGetViewers,
- bool? canMarkTasksAsDone,
- bool? canRecognizeSpeech,
- bool? canReportChat,
- bool? canReportReactions,
- bool? canReportSupergroupSpam,
- bool? canSetFactCheck,
- bool? hasProtectedContentByCurrentUser,
- bool? hasProtectedContentByOtherUser,
- bool? needShowStatistics,
Implementation
MessageProperties copyWith({
bool? canAddOffer,
bool? canAddTasks,
bool? canBeApproved,
bool? canBeCopied,
bool? canBeCopiedToSecretChat,
bool? canBeDeclined,
bool? canBeDeletedOnlyForSelf,
bool? canBeDeletedForAllUsers,
bool? canBeEdited,
bool? canBeForwarded,
bool? canBePaid,
bool? canBePinned,
bool? canBeReplied,
bool? canBeRepliedInAnotherChat,
bool? canBeSaved,
bool? canBeSharedInStory,
bool? canDeleteReactions,
bool? canEditMedia,
bool? canEditSchedulingState,
bool? canEditSuggestedPostInfo,
bool? canGetAuthor,
bool? canGetEmbeddingCode,
bool? canGetLink,
bool? canGetMediaTimestampLinks,
bool? canGetMessageThread,
bool? canGetPollVoteStatistics,
bool? canGetReadDate,
bool? canGetStatistics,
bool? canGetVideoAdvertisements,
bool? canGetViewers,
bool? canMarkTasksAsDone,
bool? canRecognizeSpeech,
bool? canReportChat,
bool? canReportReactions,
bool? canReportSupergroupSpam,
bool? canSetFactCheck,
bool? hasProtectedContentByCurrentUser,
bool? hasProtectedContentByOtherUser,
bool? needShowStatistics,
}) => MessageProperties(
canAddOffer: canAddOffer ?? this.canAddOffer,
canAddTasks: canAddTasks ?? this.canAddTasks,
canBeApproved: canBeApproved ?? this.canBeApproved,
canBeCopied: canBeCopied ?? this.canBeCopied,
canBeCopiedToSecretChat:
canBeCopiedToSecretChat ?? this.canBeCopiedToSecretChat,
canBeDeclined: canBeDeclined ?? this.canBeDeclined,
canBeDeletedOnlyForSelf:
canBeDeletedOnlyForSelf ?? this.canBeDeletedOnlyForSelf,
canBeDeletedForAllUsers:
canBeDeletedForAllUsers ?? this.canBeDeletedForAllUsers,
canBeEdited: canBeEdited ?? this.canBeEdited,
canBeForwarded: canBeForwarded ?? this.canBeForwarded,
canBePaid: canBePaid ?? this.canBePaid,
canBePinned: canBePinned ?? this.canBePinned,
canBeReplied: canBeReplied ?? this.canBeReplied,
canBeRepliedInAnotherChat:
canBeRepliedInAnotherChat ?? this.canBeRepliedInAnotherChat,
canBeSaved: canBeSaved ?? this.canBeSaved,
canBeSharedInStory: canBeSharedInStory ?? this.canBeSharedInStory,
canDeleteReactions: canDeleteReactions ?? this.canDeleteReactions,
canEditMedia: canEditMedia ?? this.canEditMedia,
canEditSchedulingState:
canEditSchedulingState ?? this.canEditSchedulingState,
canEditSuggestedPostInfo:
canEditSuggestedPostInfo ?? this.canEditSuggestedPostInfo,
canGetAuthor: canGetAuthor ?? this.canGetAuthor,
canGetEmbeddingCode: canGetEmbeddingCode ?? this.canGetEmbeddingCode,
canGetLink: canGetLink ?? this.canGetLink,
canGetMediaTimestampLinks:
canGetMediaTimestampLinks ?? this.canGetMediaTimestampLinks,
canGetMessageThread: canGetMessageThread ?? this.canGetMessageThread,
canGetPollVoteStatistics:
canGetPollVoteStatistics ?? this.canGetPollVoteStatistics,
canGetReadDate: canGetReadDate ?? this.canGetReadDate,
canGetStatistics: canGetStatistics ?? this.canGetStatistics,
canGetVideoAdvertisements:
canGetVideoAdvertisements ?? this.canGetVideoAdvertisements,
canGetViewers: canGetViewers ?? this.canGetViewers,
canMarkTasksAsDone: canMarkTasksAsDone ?? this.canMarkTasksAsDone,
canRecognizeSpeech: canRecognizeSpeech ?? this.canRecognizeSpeech,
canReportChat: canReportChat ?? this.canReportChat,
canReportReactions: canReportReactions ?? this.canReportReactions,
canReportSupergroupSpam:
canReportSupergroupSpam ?? this.canReportSupergroupSpam,
canSetFactCheck: canSetFactCheck ?? this.canSetFactCheck,
hasProtectedContentByCurrentUser:
hasProtectedContentByCurrentUser ??
this.hasProtectedContentByCurrentUser,
hasProtectedContentByOtherUser:
hasProtectedContentByOtherUser ?? this.hasProtectedContentByOtherUser,
needShowStatistics: needShowStatistics ?? this.needShowStatistics,
);