copyWith method

  1. @override
UserTypeBot copyWith({
  1. bool? canBeEdited,
  2. bool? canJoinGroups,
  3. bool? canReadAllGroupMessages,
  4. bool? isInline,
  5. String? inlineQueryPlaceholder,
  6. bool? needLocation,
  7. bool? canBeAddedToAttachmentMenu,
})
override

Implementation

@override
UserTypeBot copyWith({
  bool? canBeEdited,
  bool? canJoinGroups,
  bool? canReadAllGroupMessages,
  bool? isInline,
  String? inlineQueryPlaceholder,
  bool? needLocation,
  bool? canBeAddedToAttachmentMenu,
}) =>
    UserTypeBot(
      canBeEdited: canBeEdited ?? this.canBeEdited,
      canJoinGroups: canJoinGroups ?? this.canJoinGroups,
      canReadAllGroupMessages:
          canReadAllGroupMessages ?? this.canReadAllGroupMessages,
      isInline: isInline ?? this.isInline,
      inlineQueryPlaceholder:
          inlineQueryPlaceholder ?? this.inlineQueryPlaceholder,
      needLocation: needLocation ?? this.needLocation,
      canBeAddedToAttachmentMenu:
          canBeAddedToAttachmentMenu ?? this.canBeAddedToAttachmentMenu,
    );