class Telegram::Bot::Types::InlineQuery
Attributes
from[RW]
id[RW]
location[RW]
offset[RW]
query[RW]
Public Class Methods
new(attributes)
click to toggle source
# 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
Public Instance Methods
from=(attributes)
click to toggle source
# File lib/telegram/bot/types/inline_query.rb, line 13 def from=(attributes) @from = User.new(attr) end
location=(attributes)
click to toggle source
# File lib/telegram/bot/types/inline_query.rb, line 17 def location=(attributes) @location = Location.new(attr) end