telegram api method · layer 229 · #da9b0d0d

invokeWithLayer

usable by users and bots

Invoke the specified query using the specified API layer

definition

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

parameters

nametypedescription
layerintThe layer to use
query!XThe query

returns

X

errors (7)

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

history

present in layers 23–229

idlayers
#da9b0d0d23–229