telebot-ts API Documentation - v1.0.0
    Preparing search index...

    Type Alias HandlerCallback<C, R>

    HandlerCallback: (update: Update, context: C) => Promise<R> | R

    Standard callback function signature for update handlers.

    Type Parameters

    Type Declaration

      • (update: Update, context: C): Promise<R> | R
      • Parameters

        • update: Update

          The incoming Telegram update object.

        • context: C

          The execution context with bot client and stored state.

        Returns Promise<R> | R

        Resolves with the result returned by the handler callback.