Class TdApi.GetCallbackQueryAnswer

  • Enclosing class:
    TdApi

    public static class TdApi.GetCallbackQueryAnswer
    extends TdApi.Function
    Sends a callback query to a bot and returns an answer. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires.

    Returns CallbackQueryAnswer

    • Field Detail

      • chatId

        public long chatId
        Identifier of the chat with the message.
      • messageId

        public long messageId
        Identifier of the message from which the query originated.
      • CONSTRUCTOR

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

      • GetCallbackQueryAnswer

        public GetCallbackQueryAnswer()
        Default constructor.
      • GetCallbackQueryAnswer

        public GetCallbackQueryAnswer​(long chatId,
                                      long messageId,
                                      TdApi.CallbackQueryPayload payload)
        Constructor for initialization of all fields.
        Parameters:
        chatId - Identifier of the chat with the message.
        messageId - Identifier of the message from which the query originated.
        payload - Query payload.