initConnection

Initialize connection

---functions---
initConnection#785188b8 {X:Type} flags:# api_id:int device_model:string system_version:string app_version:string system_lang_code:string lang_pack:string lang_code:string proxy:flags.0?InputClientProxy query:!X = X;

Parameters

Name Type Description
flags # Flags, see TL conditional fields
api_id int Application identifier (see. App configuration)
device_model string Device model
system_version string Operation system version
app_version string Application version
system_lang_code string Code for the language used on the device's OS, ISO 639-1 standard
lang_pack string Language pack to use
lang_code string Code for the language used on the client, ISO 639-1 standard
proxy flags.0?InputClientProxy Info about an MTProto proxy
query !X The query itself

Result

X

Possible errors

Code Type Description
400 CONNECTION_LAYER_INVALID Layer invalid