copyWith method

UserTypeBot copyWith({
  1. bool? canBeEdited,
  2. bool? canJoinGroups,
  3. bool? canReadAllGroupMessages,
  4. bool? hasMainWebApp,
  5. bool? hasTopics,
  6. bool? allowsUsersToCreateTopics,
  7. bool? canManageBots,
  8. bool? isInline,
  9. String? inlineQueryPlaceholder,
  10. bool? supportsGuestQueries,
  11. bool? isGuard,
  12. bool? needLocation,
  13. bool? canConnectToBusiness,
  14. bool? canBeAddedToAttachmentMenu,
  15. 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,
);