Class: Telegram::Bot::Types::BotCommand
- Defined in:
- sig/telegram/bot/types/bot_command.rbs
Instance Attribute Summary collapse
-
#command ⇒ String
readonly
Returns the value of attribute command.
-
#description ⇒ String
readonly
Returns the value of attribute description.
Attributes inherited from Base
Class Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#command ⇒ String (readonly)
Returns the value of attribute command.
8 9 10 |
# File 'sig/telegram/bot/types/bot_command.rbs', line 8 def command @command end |
#description ⇒ String (readonly)
Returns the value of attribute description.
9 10 11 |
# File 'sig/telegram/bot/types/bot_command.rbs', line 9 def description @description end |
Class Method Details
.new(command:, description:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/bot_command.rbs', line 6
def self.new: (command: String, description: String) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|