BotCommand class abstract
This object represents a bot command.
- Annotations
-
- @freezed
Constructors
- BotCommand.new({@JsonKey(name: 'command') required String command, @JsonKey(name: 'description') required String description})
-
Constructs a BotCommand object.
constfactory
-
BotCommand.fromJson(Map<
String, dynamic> json) -
Creates a BotCommand object from JSON object.
factory
Properties
- command → String
-
Text of the command, 1-32 characters. Can contain only lowercase English letters, digits and underscores.
no setterinherited
-
copyWith
→ $BotCommandCopyWith<
BotCommand> -
Create a copy of BotCommand
with the given fields replaced by the non-null parameter values.
no setterinherited
- description → String
-
Description of the command, 3-256 characters.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this BotCommand to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited