class Telegram::API::ChosenInlineResult
- Telegram::API::ChosenInlineResult
- Telegram::API::Type
- Reference
- Object
Overview
Represents a result of an inline query that was chosen by the user and sent to their chat partner. Note: It is necessary to enable inline feedback via @Botfather in order to receive these objects in updates.
Defined in:
telegram/api/generated/types.crConstructors
- .new(result_id : String, from : User, query : String, location : Location | Nil = nil, inline_message_id : String | Nil = nil)
-
.new(pull : JSON::PullParser)
Represents a result of an inline query that was chosen by the user and sent to their chat partner.
Instance Method Summary
-
#from : User
The user that chose the result
-
#from=(from : User)
The user that chose the result
-
#inline_message_id : String | Nil
Optional.
-
#inline_message_id=(inline_message_id : String | Nil)
Optional.
-
#location : Location | Nil
Optional.
-
#location=(location : Location | Nil)
Optional.
-
#query : String
The query that was used to obtain the result
-
#query=(query : String)
The query that was used to obtain the result
-
#result_id : String
The unique identifier for the result that was chosen
-
#result_id=(result_id : String)
The unique identifier for the result that was chosen
Instance methods inherited from class Telegram::API::Type
==(other)
==,
client
client
Constructor methods inherited from class Telegram::API::Type
new(pull : JSON::PullParser)
new
Constructor Detail
Represents a result of an inline query that was chosen by the user and sent to their chat partner. Note: It is necessary to enable inline feedback via @Botfather in order to receive these objects in updates.
Instance Method Detail
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.
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.
Optional. Sender location, only for bots that require user location
Optional. Sender location, only for bots that require user location