Class InlineQuery
java.lang.Object
io.micronaut.chatbots.telegram.api.InlineQuery
This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.
- Since:
- 1.0.0
- Author:
- Sergio del Amo
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
InlineQuery
public InlineQuery()
-
-
Method Details
-
getId
- Returns:
- Unique identifier for this query.
-
setId
- Parameters:
id
- Unique identifier for this query.
-
getFrom
- Returns:
- Sender.
-
setFrom
- Parameters:
from
- Sender.
-
getLocation
- Returns:
- Sender location, only for bots that request user location.
-
setLocation
- Parameters:
location
- Sender location, only for bots that request user location.
-
getQuery
- Returns:
- Text of the query (up to 512 characters).
-
setQuery
- Parameters:
query
- Text of the query (up to 512 characters).
-
getOffset
- Returns:
- Offset of the results to be returned, can be controlled by the bot.
-
setOffset
- Parameters:
offset
- Offset of the results to be returned, can be controlled by the bot.
-
getChatType
- Returns:
- Type of the chat from which the inline query was sent
-
setChatType
- Parameters:
chatType
- Type of the chat from which the inline query was sent
-
toString
-