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

    Type Alias FastifyWebhookHandler

    FastifyWebhookHandler: (
        req: {
            body?: unknown;
            headers: Record<string, string | string[] | undefined>;
        },
        reply: { status: (code: number) => { send: (body?: string) => void } },
    ) => Promise<void>

    Fastify route handler signature.

    Type Declaration

      • (
            req: {
                body?: unknown;
                headers: Record<string, string | string[] | undefined>;
            },
            reply: { status: (code: number) => { send: (body?: string) => void } },
        ): Promise<void>
      • Parameters

        • req: { body?: unknown; headers: Record<string, string | string[] | undefined> }
        • reply: { status: (code: number) => { send: (body?: string) => void } }

        Returns Promise<void>