Class ChosenInlineResult

java.lang.Object
io.micronaut.chatbots.telegram.api.ChosenInlineResult

public class ChosenInlineResult extends Object
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 Details

    • ChosenInlineResult

      public ChosenInlineResult()
  • Method Details

    • getResultId

      @NonNull public @NonNull String getResultId()
      Returns:
      The unique identifier for the result that was chosen
    • setResultId

      public void setResultId(@NonNull @NonNull String resultId)
      Parameters:
      resultId - The unique identifier for the result that was chosen
    • getFrom

      @NonNull public @NonNull User getFrom()
      Returns:
      The user that chose the result.
    • setFrom

      public void setFrom(@NonNull @NonNull User from)
      Parameters:
      from - The user that chose the result.
    • getLocation

      @Nullable public @Nullable Location getLocation()
      Returns:
      Sender location, only for bots that require user location.
    • setLocation

      public void setLocation(@Nullable @Nullable Location location)
      Parameters:
      location - Sender location, only for bots that require user location.
    • getInlineMessageId

      @Nullable public @Nullable String getInlineMessageId()
      Returns:
      Identifier of the sent inline message.
    • setInlineMessageId

      public void setInlineMessageId(@Nullable @Nullable String inlineMessageId)
      Parameters:
      inlineMessageId - Identifier of the sent inline message.
    • getQuery

      @NonNull public @NonNull String getQuery()
      Returns:
      The query that was used to obtain the result
    • setQuery

      public void setQuery(@NonNull @NonNull String query)
      Parameters:
      query - The query that was used to obtain the result
    • toString

      public String toString()
      Overrides:
      toString in class Object