Class ChosenInlineResult
java.lang.Object
io.micronaut.chatbots.telegram.api.ChosenInlineResult
Represents a result of an inline query that was chosen by the user and sent to their chat partner.
- Since:
- 1.0.0
- Author:
- Sergio del Amo
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull User
getFrom()
@Nullable String
@Nullable Location
@NonNull String
getQuery()
@NonNull String
void
void
setInlineMessageId
(@Nullable String inlineMessageId) void
setLocation
(@Nullable Location location) void
void
setResultId
(@NonNull String resultId) toString()
-
Constructor Details
-
ChosenInlineResult
public ChosenInlineResult()
-
-
Method Details
-
getResultId
- Returns:
- The unique identifier for the result that was chosen
-
setResultId
- Parameters:
resultId
- The unique identifier for the result that was chosen
-
getFrom
- Returns:
- The user that chose the result.
-
setFrom
- Parameters:
from
- The user that chose the result.
-
getLocation
- Returns:
- Sender location, only for bots that require user location.
-
setLocation
- Parameters:
location
- Sender location, only for bots that require user location.
-
getInlineMessageId
- Returns:
- Identifier of the sent inline message.
-
setInlineMessageId
- Parameters:
inlineMessageId
- Identifier of the sent inline message.
-
getQuery
- Returns:
- The query that was used to obtain the result
-
setQuery
- Parameters:
query
- The query that was used to obtain the result
-
toString
-