ContextFactory<CTX extends Context> typedef

ContextFactory<CTX extends Context> = CTX Function(Update update, RawAPI api, BotInfo botInfo)

Type alias for context factory function.

This function is used to create custom context instances from updates.

Implementation

typedef ContextFactory<CTX extends Context> = CTX Function(
  Update update,
  RawAPI api,
  BotInfo botInfo,
);