Class: Telegram::Bot::Types::ChosenInlineResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ ChosenInlineResult

Returns a new instance of ChosenInlineResult.



9
10
11
# File 'lib/telegram/bot/types/chosen_inline_result.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/chosen_inline_result.rb', line 3

def from
  @from
end

#inline_message_idObject

Returns the value of attribute inline_message_id.



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

def inline_message_id
  @inline_message_id
end

#locationObject

Returns the value of attribute location.



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

def location
  @location
end

#queryObject

Returns the value of attribute query.



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

def query
  @query
end

#result_idObject

Returns the value of attribute result_id.



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

def result_id
  @result_id
end