Class: BotCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/objects/bot_command.rb

Overview

This object represents a bot command

Instance Method Summary collapse

Constructor Details

#initialize(bot) ⇒ BotCommand

:nodoc:



9
10
11
12
# File 'lib/objects/bot_command.rb', line 9

def initialize(bot) # :nodoc:
  @bot = bot
  freeze
end

Instance Method Details

#commandObject

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



16
17
18
# File 'lib/objects/bot_command.rb', line 16

def command
  @bot.command
end

#descriptionObject

Description of the command, 3-256 characters.



21
22
23
# File 'lib/objects/bot_command.rb', line 21

def description
  @bot.description
end