Skip to content

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.

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:8903
resultAwaited<ReturnType<APIMethods[Methods]>>The result of the query. The actual type depends on the called method.@gramio/types/out/objects.d.ts:8907