class Telegram::API::BotCommand

Overview

This object represents a bot command.

Defined in:

telegram/api/generated/types.cr

Constructors

Instance Method Summary

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

def self.new(command : String, description : String) #

[View source]
def self.new(pull : JSON::PullParser) #

This object represents a bot command.


[View source]

Instance Method Detail

def command : String #

Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and underscores.


[View source]
def command=(command : String) #

Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and underscores.


[View source]
def description : String #

Description of the command; 1-256 characters.


[View source]
def description=(description : String) #

Description of the command; 1-256 characters.


[View source]