Class: Telegram::Bot::Types::CallbackQuery
- Defined in:
- sig/telegram/bot/types/callback_query.rbs
Instance Attribute Summary collapse
-
#chat_instance ⇒ String
readonly
Returns the value of attribute chat_instance.
-
#data ⇒ String?
readonly
Returns the value of attribute data.
-
#from ⇒ User
readonly
Returns the value of attribute from.
-
#game_short_name ⇒ String?
readonly
Returns the value of attribute game_short_name.
-
#id ⇒ String
readonly
Returns the value of attribute id.
-
#inline_message_id ⇒ String?
readonly
Returns the value of attribute inline_message_id.
-
#message ⇒ maybe_inaccessible_message?
readonly
Returns the value of attribute message.
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Compactable
Methods included from PatternMatching
Instance Attribute Details
#chat_instance ⇒ String (readonly)
Returns the value of attribute chat_instance.
12 13 14 |
# File 'sig/telegram/bot/types/callback_query.rbs', line 12 def chat_instance @chat_instance end |
#data ⇒ String? (readonly)
Returns the value of attribute data.
13 14 15 |
# File 'sig/telegram/bot/types/callback_query.rbs', line 13 def data @data end |
#from ⇒ User (readonly)
Returns the value of attribute from.
9 10 11 |
# File 'sig/telegram/bot/types/callback_query.rbs', line 9 def from @from end |
#game_short_name ⇒ String? (readonly)
Returns the value of attribute game_short_name.
14 15 16 |
# File 'sig/telegram/bot/types/callback_query.rbs', line 14 def game_short_name @game_short_name end |
#id ⇒ String (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'sig/telegram/bot/types/callback_query.rbs', line 8 def id @id end |
#inline_message_id ⇒ String? (readonly)
Returns the value of attribute inline_message_id.
11 12 13 |
# File 'sig/telegram/bot/types/callback_query.rbs', line 11 def @inline_message_id end |
#message ⇒ maybe_inaccessible_message? (readonly)
Returns the value of attribute message.
10 11 12 |
# File 'sig/telegram/bot/types/callback_query.rbs', line 10 def @message end |
Class Method Details
.new(id:, from:, message:, inline_message_id:, chat_instance:, data:, game_short_name:) ⇒ instance .new(attributes) ⇒ instance
6 7 |
# File 'sig/telegram/bot/types/callback_query.rbs', line 6
def self.new: (id: String, from: User, ?message: maybe_inaccessible_message, ?inline_message_id: String, chat_instance: String, ?data: String, ?game_short_name: String) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance
|
Instance Method Details
#to_s ⇒ String
15 |
# File 'sig/telegram/bot/types/callback_query.rbs', line 15
def to_s: () -> String
|