Class: Telegram::Bot::Types::InlineQuery

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/inline_query.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

#chat_typeString? (readonly)

Returns the value of attribute chat_type.

Returns:

  • (String, nil)


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

def chat_type
  @chat_type
end

#fromUser (readonly)

Returns the value of attribute from.

Returns:



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

def from
  @from
end

#idString (readonly)

Returns the value of attribute id.

Returns:

  • (String)


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

def id
  @id
end

#locationLocation? (readonly)

Returns the value of attribute location.

Returns:



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

def location
  @location
end

#offsetString (readonly)

Returns the value of attribute offset.

Returns:

  • (String)


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

def offset
  @offset
end

#queryString (readonly)

Returns the value of attribute query.

Returns:

  • (String)


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

def query
  @query
end

Class Method Details

.new(id:, from:, query:, offset:, chat_type:, location:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(id:, from:, query:, offset:, chat_type:, location:) ⇒ instance

    Parameters:

    • id: (String)
    • from: (User)
    • query: (String)
    • offset: (String)
    • chat_type: (String)
    • location: (Location)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

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