class Hamilton::Types::BotCommand

Overview

This object represents a bot command.

The following algorithm is used to determine the list of commands for a particular user viewing the bot menu. The first list of commands which is set is returned: Commands in the chat with the bot:

Commands in group and supergroup chats:

Included Modules

Defined in:

types/bot_command.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

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.


def description : String #

Description of the command; 1-256 characters.


def description=(description : String) #

Description of the command; 1-256 characters.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.