Sha256: 5fa55d897d44ea9d82e1c4b89b5002c52e18fa468cf0c0942ad02bb93e513498

Contents?: true

Size: 877 Bytes

Versions: 3

Compression:

Stored size: 877 Bytes

Contents

# frozen_string_literal: true

module Telegram
  module Bot
    module Types
      class InlineQueryResultLocation < Base
        attribute :type, Types::String.constrained(eql: 'location').default('location')
        attribute :id, Types::String
        attribute :latitude, Types::Float
        attribute :longitude, Types::Float
        attribute :title, Types::String
        attribute? :horizontal_accuracy, Types::Float
        attribute? :live_period, Types::Integer
        attribute? :heading, Types::Integer
        attribute? :proximity_alert_radius, Types::Integer
        attribute? :reply_markup, InlineKeyboardMarkup
        attribute? :input_message_content, InputMessageContent
        attribute? :thumbnail_url, Types::String
        attribute? :thumbnail_width, Types::Integer
        attribute? :thumbnail_height, Types::Integer
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
telegram-bot-ruby-2.2.0 lib/telegram/bot/types/inline_query_result_location.rb
telegram-bot-ruby-2.1.0 lib/telegram/bot/types/inline_query_result_location.rb
telegram-bot-ruby-2.0.0 lib/telegram/bot/types/inline_query_result_location.rb