GramIO API Reference / gramio/dist / TelegramAPIResponseOk
Interface: TelegramAPIResponseOk<Methods>
Defined in: @gramio/types/out/objects.d.ts:8897
If 'ok' equals True, the request was successful and the result of the query can be found in the 'result' field.
Type Parameters
| Type Parameter | Default type |
|---|---|
Methods extends keyof APIMethods | keyof APIMethods |
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
ok | true | If 'ok' equals True, the request was successful | @gramio/types/out/objects.d.ts:8903 |
result | Awaited<ReturnType<APIMethods[Methods]>> | The result of the query. The actual type depends on the called method. | @gramio/types/out/objects.d.ts:8907 |