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

Inherits:
Object
  • Object
show all
Defined in:
lib/telegram/bot/types/inline_query.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ InlineQuery

Returns a new instance of InlineQuery.



9
10
11
# File 'lib/telegram/bot/types/inline_query.rb', line 9

def initialize(attributes)
  attributes.each { |k, v| self.send("#{k}=", v) if self.respond_to? k }
end

Instance Attribute Details

#fromObject

Returns the value of attribute from.



3
4
5
# File 'lib/telegram/bot/types/inline_query.rb', line 3

def from
  @from
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/telegram/bot/types/inline_query.rb', line 3

def id
  @id
end

#locationObject

Returns the value of attribute location.



3
4
5
# File 'lib/telegram/bot/types/inline_query.rb', line 3

def location
  @location
end

#offsetObject

Returns the value of attribute offset.



3
4
5
# File 'lib/telegram/bot/types/inline_query.rb', line 3

def offset
  @offset
end

#queryObject

Returns the value of attribute query.



3
4
5
# File 'lib/telegram/bot/types/inline_query.rb', line 3

def query
  @query
end