Class: Telegram::Bot::Types::ChosenInlineResult

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

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods included from Compactable

#to_compact_hash, #to_json

Methods included from PatternMatching

#deconstruct_keys

Instance Attribute Details

#fromUser (readonly)

Returns the value of attribute from.

Returns:



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

def from
  @from
end

#inline_message_idString? (readonly)

Returns the value of attribute inline_message_id.

Returns:

  • (String, nil)


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

def inline_message_id
  @inline_message_id
end

#locationLocation? (readonly)

Returns the value of attribute location.

Returns:



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

def location
  @location
end

#queryString (readonly)

Returns the value of attribute query.

Returns:

  • (String)


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

def query
  @query
end

#result_idString (readonly)

Returns the value of attribute result_id.

Returns:

  • (String)


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

def result_id
  @result_id
end

Class Method Details

.new(result_id:, from:, location:, inline_message_id:, query:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(result_id:, from:, location:, inline_message_id:, query:) ⇒ instance

    Parameters:

    • result_id: (String)
    • from: (User)
    • location: (Location)
    • inline_message_id: (String)
    • query: (String)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


6
7
# File 'sig/telegram/bot/types/chosen_inline_result.rbs', line 6

def self.new: (result_id: String, from: User, ?location: Location, ?inline_message_id: String, query: String) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance