Class: TD::Types::BotCommand

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

Overview

Represents a command supported by a bot.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#commandTD::Types::String

Text of the bot command.

Returns:

  • (TD::Types::String)

    the current value of command



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

def command
  @command
end

#descriptionTD::Types::String

Description of the bot command.

Returns:

  • (TD::Types::String)

    the current value of description



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

def description
  @description
end