copyWith method
ChatPermissions
copyWith({
- bool? canSendBasicMessages,
- bool? canSendAudios,
- bool? canSendDocuments,
- bool? canSendPhotos,
- bool? canSendVideos,
- bool? canSendVideoNotes,
- bool? canSendVoiceNotes,
- bool? canSendPolls,
- bool? canSendOtherMessages,
- bool? canAddWebPagePreviews,
- bool? canChangeInfo,
- bool? canInviteUsers,
- bool? canPinMessages,
- bool? canManageTopics,
Implementation
ChatPermissions copyWith({
bool? canSendBasicMessages,
bool? canSendAudios,
bool? canSendDocuments,
bool? canSendPhotos,
bool? canSendVideos,
bool? canSendVideoNotes,
bool? canSendVoiceNotes,
bool? canSendPolls,
bool? canSendOtherMessages,
bool? canAddWebPagePreviews,
bool? canChangeInfo,
bool? canInviteUsers,
bool? canPinMessages,
bool? canManageTopics,
}) =>
ChatPermissions(
canSendBasicMessages: canSendBasicMessages ?? this.canSendBasicMessages,
canSendAudios: canSendAudios ?? this.canSendAudios,
canSendDocuments: canSendDocuments ?? this.canSendDocuments,
canSendPhotos: canSendPhotos ?? this.canSendPhotos,
canSendVideos: canSendVideos ?? this.canSendVideos,
canSendVideoNotes: canSendVideoNotes ?? this.canSendVideoNotes,
canSendVoiceNotes: canSendVoiceNotes ?? this.canSendVoiceNotes,
canSendPolls: canSendPolls ?? this.canSendPolls,
canSendOtherMessages: canSendOtherMessages ?? this.canSendOtherMessages,
canAddWebPagePreviews:
canAddWebPagePreviews ?? this.canAddWebPagePreviews,
canChangeInfo: canChangeInfo ?? this.canChangeInfo,
canInviteUsers: canInviteUsers ?? this.canInviteUsers,
canPinMessages: canPinMessages ?? this.canPinMessages,
canManageTopics: canManageTopics ?? this.canManageTopics,
);