class Telegram::API::BotCommand
- Telegram::API::BotCommand
- Telegram::API::Type
- Reference
- Object
Overview
This object represents a bot command.
Defined in:
telegram/api/generated/types.crConstructors
- .new(command : String, description : String)
-
.new(pull : JSON::PullParser)
This object represents a bot command.
Instance Method Summary
-
#command : String
Text of the command; 1-32 characters.
-
#command=(command : String)
Text of the command; 1-32 characters.
-
#description : String
Description of the command; 1-256 characters.
-
#description=(description : String)
Description of the command; 1-256 characters.
Instance methods inherited from class Telegram::API::Type
==(other)
==,
client
client
Constructor methods inherited from class Telegram::API::Type
new(pull : JSON::PullParser)
new
Constructor Detail
Instance Method Detail
def command : String
#
Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and underscores.
def command=(command : String)
#
Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and underscores.