Layer 231
TonConnectRequestObj
A pending request from a d App in a TON Connect session.
constructor
tonConnectRequest#a15f8513 flags:# session_id:long msg_id:int body:bytes expires:int topic:flags.0?string trace_id:flags.1?string = TonConnectRequest;
Parameters
| Name | Type | Description |
|---|---|---|
| SessionId | long | TON Connect session ID |
| MsgId | int | Request ID |
| Body | bytes | Encrypted request body |
| Expires | int | When the request expires |
| Topic | flags.0?string | Request topic |
| TraceId | flags.1?string | Trace ID of the request |
Returns
TonConnectRequestGogram Example
// Creating TonConnectRequestObj constructor obj := &tg.TonConnectRequestObj{ SessionId: int64(1234567890), MsgId: 42, Body: []byte{0x01, 0x02, 0x03}, Expires: 42, // Optional fields: // Topic: "example", // TraceId: "example", }