initConnection
Initialize connection
| Name | Type | Required | Description |
|---|---|---|---|
api_id | int | Yes | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) |
device_model | string | Yes | Device model |
system_version | string | Yes | Operation system version |
app_version | string | Yes | Application version |
system_lang_code | string | Yes | Code for the language used on the device's OS, ISO 639-1 standard |
lang_pack | string | Yes | Platform identifier (i.e. `android`, `tdesktop`, etc). |
lang_code | string | Yes | Either an ISO 639-1 language code or a language pack name obtained from a [language pack link](https://core.telegram.org/api/links.md#language-pack-links). |
proxy | InputClientProxy | No | Info about an MTProto proxy |
params | JSONValue | No | Additional initConnection parameters. For now, only the `tz_offset` field is supported, for specifying the timezone offset in seconds. |
query | !X | Yes | The query itself |
Replies
X
MTProto RPC
- 400 · CONNECTION_LAYER_INVALID — Layer invalid.