Class TdApi.CallbackQueryAnswer

  • Enclosing class:
    TdApi

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

      • text

        public String text
        Text of the answer.
      • showAlert

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

        public 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()
        Contains a bot's answer to a callback query.
      • CallbackQueryAnswer

        public CallbackQueryAnswer​(String text,
                                   boolean showAlert,
                                   String url)
        Contains a bot's answer to a callback query.
        Parameters:
        text - Text of the answer.
        showAlert - True, if an alert must be shown to the user instead of a toast notification.
        url - URL to be opened.