TonConnectSession

class pyrogram.types.TonConnectSession[source]

Contains information about an active TON Connect decentralized app session.

Parameters:
  • id (int) – Unique identifier of the TON Connect session.

  • dapp_client_id (str) – Client identifier of the decentralized application.

  • client_id (str, optional) – Registered client identifier.

  • date (datetime) – Creation date of the session.

  • is_pending (bool) – True if session handshake is pending approval.

  • is_closing (bool) – True if the session is currently closing.

  • is_closed (bool) – True if the session is terminated.

  • manifest_url (str, optional) – URL to the dApp manifest.

  • manifest_name (str, optional) – Branding name of the decentralized application.

  • manifest_icon_url (str, optional) – URL to the dApp icon.

  • manifest_error (int, optional) – Error code while loading the manifest, if any.