Class: Telegram::Bot::Types::CallbackQuery

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/callback_query.rbs

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Compactable

#to_compact_hash, #to_json

Methods included from PatternMatching

#deconstruct_keys

Instance Attribute Details

#chat_instanceString (readonly)

Returns the value of attribute chat_instance.

Returns:

  • (String)


12
13
14
# File 'sig/telegram/bot/types/callback_query.rbs', line 12

def chat_instance
  @chat_instance
end

#dataString? (readonly)

Returns the value of attribute data.

Returns:

  • (String, nil)


13
14
15
# File 'sig/telegram/bot/types/callback_query.rbs', line 13

def data
  @data
end

#fromUser (readonly)

Returns the value of attribute from.

Returns:



9
10
11
# File 'sig/telegram/bot/types/callback_query.rbs', line 9

def from
  @from
end

#game_short_nameString? (readonly)

Returns the value of attribute game_short_name.

Returns:

  • (String, nil)


14
15
16
# File 'sig/telegram/bot/types/callback_query.rbs', line 14

def game_short_name
  @game_short_name
end

#idString (readonly)

Returns the value of attribute id.

Returns:

  • (String)


8
9
10
# File 'sig/telegram/bot/types/callback_query.rbs', line 8

def id
  @id
end

#inline_message_idString? (readonly)

Returns the value of attribute inline_message_id.

Returns:

  • (String, nil)


11
12
13
# File 'sig/telegram/bot/types/callback_query.rbs', line 11

def inline_message_id
  @inline_message_id
end

#messagemaybe_inaccessible_message? (readonly)

Returns the value of attribute message.

Returns:

  • (maybe_inaccessible_message, nil)


10
11
12
# File 'sig/telegram/bot/types/callback_query.rbs', line 10

def message
  @message
end

Class Method Details

.new(id:, from:, message:, inline_message_id:, chat_instance:, data:, game_short_name:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(id:, from:, message:, inline_message_id:, chat_instance:, data:, game_short_name:) ⇒ instance

    Parameters:

    • id: (String)
    • from: (User)
    • message: (maybe_inaccessible_message)
    • inline_message_id: (String)
    • chat_instance: (String)
    • data: (String)
    • game_short_name: (String)

    Returns:

    • (instance)
  • .new(attributes) ⇒ instance

    Parameters:

    • attributes (Hash[Symbol | String, untyped])

    Returns:

    • (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_sString

Returns:

  • (String)


15
# File 'sig/telegram/bot/types/callback_query.rbs', line 15

def to_s: () -> String