tonConnectSession
tonConnectSession
Section titled “tonConnectSession”No description provided by the pinned schema.
Signature
Section titled “Signature”tonConnectSession#126556c6 flags:# pending:flags.0?true closing:flags.1?true closed:flags.2?true id:long dapp_client_id:string client_id:flags.3?string nonce:bytes manifest:flags.4?TonConnectManifest manifest_error:flags.5?int date:int = TonConnectSession;Result type
Section titled “Result type”TonConnectSession
Parameters
Section titled “Parameters”| Name | Type | Flag | Default | Description |
|---|---|---|---|---|
| flags | # | flag word | — | No description provided by the pinned schema. |
| pending | flags.0?true | flags.0 | — | No description provided by the pinned schema. |
| closing | flags.1?true | flags.1 | — | No description provided by the pinned schema. |
| closed | flags.2?true | flags.2 | — | No description provided by the pinned schema. |
| id | long | — | — | No description provided by the pinned schema. |
| dapp_client_id | string | — | — | No description provided by the pinned schema. |
| client_id | flags.3?string | flags.3 | — | No description provided by the pinned schema. |
| nonce | bytes | — | — | No description provided by the pinned schema. |
| manifest | flags.4?TonConnectManifest | flags.4 | — | No description provided by the pinned schema. |
| manifest_error | flags.5?int | flags.5 | — | No description provided by the pinned schema. |
| date | int | — | — | No description provided by the pinned schema. |
| Parameter | Bit | Meaning |
|---|---|---|
| pending | 0 | Controlled by flags; present when this bit is set. |
| closing | 1 | Controlled by flags; present when this bit is set. |
| closed | 2 | Controlled by flags; present when this bit is set. |
| client_id | 3 | Controlled by flags; present when this bit is set. |
| manifest | 4 | Controlled by flags; present when this bit is set. |
| manifest_error | 5 | Controlled by flags; present when this bit is set. |
Python binding
Section titled “Python binding”from miniproto.raw.types import TonConnectSessionPublic access: miniproto.raw.types.TonConnectSession.
Class reference
Section titled “Class reference”from miniproto.raw.types import TonConnectSession
# Refer to the raw constructor class without constructing it or calling Telegramconstructor_type = TonConnectSessionResult family
Section titled “Result family”Relationships
Section titled “Relationships”- Result family:
TonConnectSession - Accepted by:
updateWalletTonConnectSession,wallet.tonConnectPending,wallet.tonConnectSessions - Returned by:
wallet.tonConnectCreateSession
Provenance
Section titled “Provenance”- structural source:
tdlib - canonical schema: https://raw.githubusercontent.com/tdlib/td/refs/heads/master/td/generate/scheme/telegram_api.tl
- prose merge precedence: TDLib → Telegram Desktop → Core JSON
- source note: Canonical structure is the pinned TDLib telegram_api.tl; Layer 234 comes only from the matching Telegram Desktop end-of-file marker; core.telegram.org inputs enrich documentation and RPC error metadata without overriding structure.
Source-diff notes
Section titled “Source-diff notes”- tdlib_vs_core: changed_count=77; core_only_count=18; overlap_count=2338; tdlib_only_count=307
- tdlib_vs_tdesktop: changed_count=0; overlap_count=2634; tdesktop_only=null; tdlib_only=accessPointRule, bots.setBotSettings, help.configSimple, inputPeerPhotoFileLocationLegacy, inputStickerSetThumbLegacy, invokeWithApnsSecretPrefix, invokeWithBusinessConnectionPrefix, invokeWithGooglePlayIntegrityPrefix, invokeWithReCaptchaPrefix, ipPort, ipPortSecret