Layer 231
InputTonConnectOauthSessionObj
TON Connect session data passed when authorizing on a website with the user's wallet.
constructor
inputTonConnectOauthSession#629f66ce session_id:long challenge_answer:bytes body:bytes proof:WalletOwnershipProof = InputTonConnectOauthSession;
Parameters
| Name | Type | Description |
|---|---|---|
| SessionId | long | TON Connect session ID |
| ChallengeAnswer | bytes | Answer to the session challenge |
| Body | bytes | Encrypted connect event for the d App |
| Proof | WalletOwnershipProof | Proof of ownership of the wallet |
Returns
InputTonConnectOauthSessionGogram Example
// Creating InputTonConnectOauthSessionObj constructor obj := &tg.InputTonConnectOauthSessionObj{ SessionId: int64(1234567890), ChallengeAnswer: []byte{0x01, 0x02, 0x03}, Body: []byte{0x01, 0x02, 0x03}, Proof: &tg.WalletOwnershipProofObj{}, }