class ChoseInlineResult
Represents a result of an inline query that was chosen by the user¶ ↑
and sent to their chat partner.¶ ↑
Public Instance Methods
from()
click to toggle source
The user that chose the result.
# File lib/objects/chosen_inline_result.rb, line 20 def from User.new(@result.from) end
inline_message_id()
click to toggle source
Optional.
Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message.
# File lib/objects/chosen_inline_result.rb, line 35 def inline_message_id @result.inline_message_id end
location()
click to toggle source
Optional
. Sender location, only for bots that require user location.
# File lib/objects/chosen_inline_result.rb, line 25 def location lcation = @result.location return Location.new(lcation) if lcation false end
query()
click to toggle source
The query that was used to obtain the result.
# File lib/objects/chosen_inline_result.rb, line 40 def query @result.query end
result_id()
click to toggle source
The unique identifier for the result that was chosen.
# File lib/objects/chosen_inline_result.rb, line 15 def result_id @result.result_id end