Class: TD::Types::BotCommand

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/bot_command.rb

Overview

Represents commands supported by a bot.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#commandString

Text of the bot command.

Returns:

  • (String)

    the current value of command



6
7
8
# File 'lib/tdlib/types/bot_command.rb', line 6

def command
  @command
end

#descriptionString

Description of the bot command.

Returns:

  • (String)

    the current value of description



6
7
8
# File 'lib/tdlib/types/bot_command.rb', line 6

def description
  @description
end