copyWith method
UserTypeBot
copyWith({
- bool? canBeEdited,
- bool? canJoinGroups,
- bool? canReadAllGroupMessages,
- bool? hasMainWebApp,
- bool? hasTopics,
- bool? allowsUsersToCreateTopics,
- bool? canManageBots,
- bool? isInline,
- String? inlineQueryPlaceholder,
- bool? supportsGuestQueries,
- bool? isGuard,
- bool? needLocation,
- bool? canConnectToBusiness,
- bool? canBeAddedToAttachmentMenu,
- int? activeUserCount,
Implementation
UserTypeBot copyWith({
bool? canBeEdited,
bool? canJoinGroups,
bool? canReadAllGroupMessages,
bool? hasMainWebApp,
bool? hasTopics,
bool? allowsUsersToCreateTopics,
bool? canManageBots,
bool? isInline,
String? inlineQueryPlaceholder,
bool? supportsGuestQueries,
bool? isGuard,
bool? needLocation,
bool? canConnectToBusiness,
bool? canBeAddedToAttachmentMenu,
int? activeUserCount,
}) => UserTypeBot(
canBeEdited: canBeEdited ?? this.canBeEdited,
canJoinGroups: canJoinGroups ?? this.canJoinGroups,
canReadAllGroupMessages:
canReadAllGroupMessages ?? this.canReadAllGroupMessages,
hasMainWebApp: hasMainWebApp ?? this.hasMainWebApp,
hasTopics: hasTopics ?? this.hasTopics,
allowsUsersToCreateTopics:
allowsUsersToCreateTopics ?? this.allowsUsersToCreateTopics,
canManageBots: canManageBots ?? this.canManageBots,
isInline: isInline ?? this.isInline,
inlineQueryPlaceholder:
inlineQueryPlaceholder ?? this.inlineQueryPlaceholder,
supportsGuestQueries: supportsGuestQueries ?? this.supportsGuestQueries,
isGuard: isGuard ?? this.isGuard,
needLocation: needLocation ?? this.needLocation,
canConnectToBusiness: canConnectToBusiness ?? this.canConnectToBusiness,
canBeAddedToAttachmentMenu:
canBeAddedToAttachmentMenu ?? this.canBeAddedToAttachmentMenu,
activeUserCount: activeUserCount ?? this.activeUserCount,
);