Skip to content

GramIO API Reference / gramio/dist / Hooks / OnResponse

Type Alias: OnResponse()<Methods>

OnResponse<Methods> = (context) => unknown

Defined in: gramio/index.d.ts:775

Type for onResponse hook

Documentation

Type Parameters

Type ParameterDefault type
Methods extends keyof APIMethodskeyof APIMethods

Parameters

ParameterType
contextAnyTelegramMethodWithReturn<Methods>

Returns

unknown