copyWith method
UpdateForumTopic
copyWith({
- int? chatId,
- int? forumTopicId,
- bool? isPinned,
- int? lastReadInboxMessageId,
- int? lastReadOutboxMessageId,
- int? unreadMentionCount,
- int? unreadReactionCount,
- int? unreadPollVoteCount,
- ChatNotificationSettings? notificationSettings,
- DraftMessage? draftMessage,
Implementation
UpdateForumTopic copyWith({
int? chatId,
int? forumTopicId,
bool? isPinned,
int? lastReadInboxMessageId,
int? lastReadOutboxMessageId,
int? unreadMentionCount,
int? unreadReactionCount,
int? unreadPollVoteCount,
ChatNotificationSettings? notificationSettings,
DraftMessage? draftMessage,
}) => UpdateForumTopic(
chatId: chatId ?? this.chatId,
forumTopicId: forumTopicId ?? this.forumTopicId,
isPinned: isPinned ?? this.isPinned,
lastReadInboxMessageId:
lastReadInboxMessageId ?? this.lastReadInboxMessageId,
lastReadOutboxMessageId:
lastReadOutboxMessageId ?? this.lastReadOutboxMessageId,
unreadMentionCount: unreadMentionCount ?? this.unreadMentionCount,
unreadReactionCount: unreadReactionCount ?? this.unreadReactionCount,
unreadPollVoteCount: unreadPollVoteCount ?? this.unreadPollVoteCount,
notificationSettings: notificationSettings ?? this.notificationSettings,
draftMessage: draftMessage ?? this.draftMessage,
);