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.