submit_ton_connect_response()

async Client.submit_ton_connect_response()

Submit the response payload for a processed TON Connect request.

Usable by Users Bots
Parameters:
  • session_id (int) – The TON Connect session identifier.

  • msg_id (int) – Message identifier of the request.

  • body (bytes) – Response payload data.

  • trace_id (str, optional) – Optional tracing identifier.

Returns:

bool – True on success.

Example

ok = await app.submit_ton_connect_response(
    session_id=123,
    msg_id=456,
    body=b"...",
)