class
Hamilton::Types::InlineQuery
- Hamilton::Types::InlineQuery
- Reference
- Object
Overview
This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/inline_query.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#chat_type : String | Nil
Type of the chat from which the inline query was sent.
-
#chat_type=(chat_type : String | Nil)
Type of the chat from which the inline query was sent.
-
#from : Hamilton::Types::User
Sender.
-
#from=(from : Hamilton::Types::User)
Sender.
-
#id : String
Unique identifier for this query.
-
#id=(id : String)
Unique identifier for this query.
-
#location : Hamilton::Types::Location | Nil
Sender location, only for bots that request user location.
-
#location=(location : Hamilton::Types::Location | Nil)
Sender location, only for bots that request 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.
-
#offset : String
Offset of the results to be returned, can be controlled by the bot.
-
#offset=(offset : String)
Offset of the results to be returned, can be controlled by the bot.
-
#query : String
Text of the query (up to 256 characters).
-
#query=(query : String)
Text of the query (up to 256 characters).
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
Type of the chat from which the inline query was sent. Can be either “sender” for a private chat with the inline query sender, “private”, “group”, “supergroup”, or “channel”. The chat type should be always known for requests sent from official clients and most third-party clients, unless the request was sent from a secret chat.
Type of the chat from which the inline query was sent. Can be either “sender” for a private chat with the inline query sender, “private”, “group”, “supergroup”, or “channel”. The chat type should be always known for requests sent from official clients and most third-party clients, unless the request was sent from a secret chat.
Sender location, only for bots that request user location.
Sender location, only for bots that request user location.