copyWith method

MessageProperties copyWith({
  1. bool? canAddOffer,
  2. bool? canAddTasks,
  3. bool? canBeApproved,
  4. bool? canBeCopied,
  5. bool? canBeCopiedToSecretChat,
  6. bool? canBeDeclined,
  7. bool? canBeDeletedOnlyForSelf,
  8. bool? canBeDeletedForAllUsers,
  9. bool? canBeEdited,
  10. bool? canBeForwarded,
  11. bool? canBePaid,
  12. bool? canBePinned,
  13. bool? canBeReplied,
  14. bool? canBeRepliedInAnotherChat,
  15. bool? canBeSaved,
  16. bool? canBeSharedInStory,
  17. bool? canDeleteReactions,
  18. bool? canEditMedia,
  19. bool? canEditSchedulingState,
  20. bool? canEditSuggestedPostInfo,
  21. bool? canGetAuthor,
  22. bool? canGetEmbeddingCode,
  23. bool? canGetLink,
  24. bool? canGetMediaTimestampLinks,
  25. bool? canGetMessageThread,
  26. bool? canGetPollVoteStatistics,
  27. bool? canGetReadDate,
  28. bool? canGetStatistics,
  29. bool? canGetVideoAdvertisements,
  30. bool? canGetViewers,
  31. bool? canMarkTasksAsDone,
  32. bool? canRecognizeSpeech,
  33. bool? canReportChat,
  34. bool? canReportReactions,
  35. bool? canReportSupergroupSpam,
  36. bool? canSetFactCheck,
  37. List<int>? customEmojiIds,
  38. bool? hasProtectedContentByCurrentUser,
  39. bool? hasProtectedContentByOtherUser,
  40. 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,
  List<int>? customEmojiIds,
  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,
      customEmojiIds: customEmojiIds ?? this.customEmojiIds,
      hasProtectedContentByCurrentUser: hasProtectedContentByCurrentUser ??
          this.hasProtectedContentByCurrentUser,
      hasProtectedContentByOtherUser: hasProtectedContentByOtherUser ??
          this.hasProtectedContentByOtherUser,
      needShowStatistics: needShowStatistics ?? this.needShowStatistics,
    );