Skip to content

GramIO API Reference / gramio/dist / TelegramAPIResponseOk

Interface: TelegramAPIResponseOk<Methods> ​

Defined in: @gramio/types/out/objects.d.ts:11600

If 'ok' equals True, the request was successful and the result of the query can be found in the 'result' field.

Documentation

Type Parameters ​

Type ParameterDefault type
Methods extends keyof APIMethodskeyof APIMethods

Properties ​

PropertyTypeDescriptionDefined in
oktrueIf 'ok' equals True, the request was successful@gramio/types/out/objects.d.ts:11606
resultAwaited<ReturnType<APIMethods[Methods]>>The result of the query. The actual type depends on the called method.@gramio/types/out/objects.d.ts:11610