accept_ton_connect_request()¶
- async Client.accept_ton_connect_request()¶
Accept a pending TON Connect request from a connected dApp.
Usable by Users Bots- Parameters:
session_id (
int) – The TON Connect session identifier.msg_id (
int) – Message identifier of the request.app_request_id (
str) – Application request identifier.challenge_answer (
bytes, optional) – Challenge answer if signing/confirming the request.declined (
bool, optional) – Whether the request was declined. Defaults to False.
- Returns:
bool– True on success.
Example
ok = await app.accept_ton_connect_request( session_id=123, msg_id=456, app_request_id="req_1", challenge_answer=b"...", )