Skip to content

GramIO API Reference / gramio/dist / APIMethodReturn

Type Alias: APIMethodReturn<APIMethod>

APIMethodReturn<APIMethod> = Awaited<ReturnType<APIMethods[APIMethod]>>

Defined in: @gramio/types/out/utils.d.ts:44

Type Parameters

Type Parameter
APIMethod extends keyof APIMethods

Example

typescript
type SendMessageReturn = APIMethodReturn<"sendMessage">;
//   ^? type SendMessageReturn = TelegramMessage"