submit_ton_connect_result()¶
- async Client.submit_ton_connect_result()¶
Send the connection result back to a TON Connect session.
Usable by Users Bots- Parameters:
session_id (
int) – The TON Connect session identifier.challenge_answer (
bytes) – Cryptographic answer proving ownership.body (
bytes) – Payload data or connection result payload.trace_id (
str, optional) – Optional tracing identifier.error (
bool, optional) – Whether this result indicates an error.
- Returns:
bool– True on success.
Example
ok = await app.submit_ton_connect_result( session_id=123456789, challenge_answer=b"...", body=b"...", )