BotCommand class
This object represents a bot command.
Constructors
- BotCommand({required String command, required String description})
-
Creates a new BotCommand object.
const
Properties
- command → String
-
Text of the command, 1-32 characters. Can contain only lowercase English letters, digits and underscores.
final
- description → String
-
Description of the command, 3-256 characters.
final
- 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> - Converts a BotCommand to a Map for JSON encoding.
-
toString(
) → String -
Converts a BotCommand instance to a String.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, dynamic> json) → BotCommand - Creates a new BotCommand object from json.