invoke_with_layer()

async Client.invoke_with_layer()

Invoke the specified query using the specified API layer.

Usable by Users Bots
Parameters:
  • layer (int) – The API layer to use.

  • query (Any function from functions) – The query to invoke.

Returns:

Any object from types – On success, query result is returned.