Skip to content

GramIO API Reference / gramio/dist / APIMethodParams

Type Alias: APIMethodParams<APIMethod> ​

APIMethodParams<APIMethod> = Parameters<APIMethods[APIMethod]>[0]

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

Type Parameters ​

Type Parameter
APIMethod extends keyof APIMethods

Example ​

typescript
type SendMessageParams = APIMethodParams<"sendMessage">;
//   ^? type SendMessageParams = SendMessageParams"