class
Hamilton::Types::ChosenInlineResult
- Hamilton::Types::ChosenInlineResult
- 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.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/chosen_inline_reslt.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#from : Hamilton::Types::User
The user that chose the result.
-
#from=(from : Hamilton::Types::User)
The user that chose the result.
-
#inline_message_id : String | Nil
Identifier of the sent inline message.
-
#inline_message_id=(inline_message_id : String | Nil)
Identifier of the sent inline message.
-
#location : Hamilton::Types::Location | Nil
Sender location, only for bots that require user location.
-
#location=(location : Hamilton::Types::Location | Nil)
Sender location, only for bots that require user location.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#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 Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
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.
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.
Sender location, only for bots that require user location.
Sender location, only for bots that require user location.