copyWith method

UserTypeBot copyWith({
  1. bool? canBeEdited,
  2. bool? canJoinGroups,
  3. bool? canReadAllGroupMessages,
  4. bool? hasMainWebApp,
  5. bool? hasTopics,
  6. bool? hasTopicSidebar,
  7. bool? allowsUsersToCreateTopics,
  8. bool? canManageBots,
  9. bool? isInline,
  10. String? inlineQueryPlaceholder,
  11. bool? supportsGuestQueries,
  12. bool? isGuard,
  13. bool? needLocation,
  14. bool? canConnectToBusiness,
  15. bool? canBeAddedToAttachmentMenu,
  16. int? activeUserCount,
})

Implementation

UserTypeBot copyWith({
  bool? canBeEdited,
  bool? canJoinGroups,
  bool? canReadAllGroupMessages,
  bool? hasMainWebApp,
  bool? hasTopics,
  bool? hasTopicSidebar,
  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,
      hasTopicSidebar: hasTopicSidebar ?? this.hasTopicSidebar,
      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,
    );