answer_webhook_json_query()

async Client.answer_webhook_json_query()

Answer a custom webhook JSON query (for bots).

Usable by Users Bots
Parameters:
  • query_id (int) – Identifier of the custom query.

  • data (str | DataJSON) – JSON-serialized answer to the query or a DataJSON object.

Returns:

bool – On success, True is returned.

Example

await bot.answer_webhook_json_query(123456, '{"status": "ok"}')