Class: Telegram::Bot::Types::InlineQueryResultLocation

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

#headingInteger? (readonly)

Returns the value of attribute heading.

Returns:

  • (Integer, nil)


15
16
17
# File 'sig/telegram/bot/types/inline_query_result_location.rbs', line 15

def heading
  @heading
end

#horizontal_accuracyFloat? (readonly)

Returns the value of attribute horizontal_accuracy.

Returns:

  • (Float, nil)


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

def horizontal_accuracy
  @horizontal_accuracy
end

#idString (readonly)

Returns the value of attribute id.

Returns:

  • (String)


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

def id
  @id
end

#input_message_contentinput_message_content? (readonly)

Returns the value of attribute input_message_content.

Returns:



18
19
20
# File 'sig/telegram/bot/types/inline_query_result_location.rbs', line 18

def input_message_content
  @input_message_content
end

#latitudeFloat (readonly)

Returns the value of attribute latitude.

Returns:

  • (Float)


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

def latitude
  @latitude
end

#live_periodInteger? (readonly)

Returns the value of attribute live_period.

Returns:

  • (Integer, nil)


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

def live_period
  @live_period
end

#longitudeFloat (readonly)

Returns the value of attribute longitude.

Returns:

  • (Float)


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

def longitude
  @longitude
end

#proximity_alert_radiusInteger? (readonly)

Returns the value of attribute proximity_alert_radius.

Returns:

  • (Integer, nil)


16
17
18
# File 'sig/telegram/bot/types/inline_query_result_location.rbs', line 16

def proximity_alert_radius
  @proximity_alert_radius
end

#reply_markupInlineKeyboardMarkup? (readonly)

Returns the value of attribute reply_markup.

Returns:



17
18
19
# File 'sig/telegram/bot/types/inline_query_result_location.rbs', line 17

def reply_markup
  @reply_markup
end

#thumbnail_heightInteger? (readonly)

Returns the value of attribute thumbnail_height.

Returns:

  • (Integer, nil)


21
22
23
# File 'sig/telegram/bot/types/inline_query_result_location.rbs', line 21

def thumbnail_height
  @thumbnail_height
end

#thumbnail_urlString? (readonly)

Returns the value of attribute thumbnail_url.

Returns:

  • (String, nil)


19
20
21
# File 'sig/telegram/bot/types/inline_query_result_location.rbs', line 19

def thumbnail_url
  @thumbnail_url
end

#thumbnail_widthInteger? (readonly)

Returns the value of attribute thumbnail_width.

Returns:

  • (Integer, nil)


20
21
22
# File 'sig/telegram/bot/types/inline_query_result_location.rbs', line 20

def thumbnail_width
  @thumbnail_width
end

#titleString (readonly)

Returns the value of attribute title.

Returns:

  • (String)


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

def title
  @title
end

#typeString (readonly)

Returns the value of attribute type.

Returns:

  • (String)


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

def type
  @type
end

Class Method Details

.new(type:, id:, latitude:, longitude:, title:, horizontal_accuracy:, live_period:, heading:, proximity_alert_radius:, reply_markup:, input_message_content:, thumbnail_url:, thumbnail_width:, thumbnail_height:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(type:, id:, latitude:, longitude:, title:, horizontal_accuracy:, live_period:, heading:, proximity_alert_radius:, reply_markup:, input_message_content:, thumbnail_url:, thumbnail_width:, thumbnail_height:) ⇒ instance

    Parameters:

    • type: (String)
    • id: (String)
    • latitude: (Float)
    • longitude: (Float)
    • title: (String)
    • horizontal_accuracy: (Float)
    • live_period: (Integer)
    • heading: (Integer)
    • proximity_alert_radius: (Integer)
    • reply_markup: (InlineKeyboardMarkup)
    • input_message_content: (input_message_content)
    • thumbnail_url: (String)
    • thumbnail_width: (Integer)
    • thumbnail_height: (Integer)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


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

def self.new: (?type: String, id: String, latitude: Float, longitude: Float, title: String, ?horizontal_accuracy: Float, ?live_period: Integer, ?heading: Integer, ?proximity_alert_radius: Integer, ?reply_markup: InlineKeyboardMarkup, ?input_message_content: input_message_content, ?thumbnail_url: String, ?thumbnail_width: Integer, ?thumbnail_height: Integer) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance