Class TdApi.CallbackQueryAnswer

  • Enclosing class:
    TdApi

    public static class TdApi.CallbackQueryAnswer
    extends TdApi.Object
    Contains a bot's answer to a callback query.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      boolean showAlert
      True, if an alert should be shown to the user instead of a toast notification.
      java.lang.String text
      Text of the answer.
      java.lang.String url
      URL to be opened.
    • Constructor Summary

      Constructors 
      Constructor Description
      CallbackQueryAnswer()
      Default constructor.
      CallbackQueryAnswer​(java.lang.String text, boolean showAlert, java.lang.String url)
      Constructor for initialization of all fields.
    • Field Detail

      • text

        public java.lang.String text
        Text of the answer.
      • showAlert

        public boolean showAlert
        True, if an alert should be shown to the user instead of a toast notification.
      • url

        public java.lang.String url
        URL to be opened.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CallbackQueryAnswer

        public CallbackQueryAnswer()
        Default constructor.
      • CallbackQueryAnswer

        public CallbackQueryAnswer​(java.lang.String text,
                                   boolean showAlert,
                                   java.lang.String url)
        Constructor for initialization of all fields.
        Parameters:
        text - Text of the answer.
        showAlert - True, if an alert should be shown to the user instead of a toast notification.
        url - URL to be opened.