Layer 231
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

Gogram Example

// Creating InputTonConnectOauthSessionObj constructor
obj := &tg.InputTonConnectOauthSessionObj{
    SessionId: int64(1234567890),
    ChallengeAnswer: []byte{0x01, 0x02, 0x03},
    Body: []byte{0x01, 0x02, 0x03},
    Proof: &tg.WalletOwnershipProofObj{},
}