telegram api method · layer 229 · #c1cd5ea9
initConnection
Initialize connection
definition
initConnection#c1cd5ea9 {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 params:flags.1?JSONValue 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 | Platform identifier (i.e. android, tdesktop, etc). |
lang_code | string | Either an ISO 639-1 language code or a language pack name obtained from a language pack link. |
proxy | InputClientProxy | Info about an MTProto proxy |
params | JSONValue | Additional initConnection parameters. For now, only the tz_offset field is supported, for specifying the timezone offset in seconds. |
query | !X | The query itself |
returns
errors (1)
| code | error | description |
|---|---|---|
| 400 | CONNECTION_LAYER_INVALID | Layer invalid. |
history
present in layers 9–229 · constructor id changed 3×
| id | layers |
|---|---|
| #69796de9 | 9–66 |
| #c7481da6 | 67–77 |
| #785188b8 | 78–111 |
| #c1cd5ea9 | 112–229 |