invokeWithLayer #

Invoke the specified query using the specified API layer

Layer 223

---functions---
invokeWithLayer#da9b0d0d {X:Type} layer:int query:!X = X;

Parameters #

NameTypeDescription
layerintThe layer to use
query!XThe query

Result #

Returns the type returned by the invoked method.

Both users and bots can use this method #

This method can be invoked over an unauthenticated connection » #

Possible errors #

CodeTypeDescription
400AUTH_BYTES_INVALIDThe provided authorization is invalid.
400CDN_METHOD_INVALIDYou can't call this method in a CDN DC.
403CHAT_WRITE_FORBIDDENYou can't write in this chat.
400CONNECTION_API_ID_INVALIDThe provided API id is invalid.
400CONNECTION_LAYER_INVALIDLayer invalid.
406INVITE_HASH_EXPIREDThe invite link has expired.

Calling API Methods #

Additional options for calling methods.