initConnection
Initialize connection
| الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|
api_id | int | أيوه | Application identifier (see. [App configuration](https://core.telegram.org/myapp)) |
device_model | string | أيوه | طراز الجهاز |
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](https://core.telegram.org/api/links.md#language-pack-links). |
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 |
الردود
X
MTProto RPC
- 400 · CONNECTION_LAYER_INVALID — Layer invalid.