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

    Class CustomFilter

    Filter that executes an arbitrary predicate against the full Update object.

    const customFilter = new CustomFilter((update) => update.effective_user?.id === 123456);
    

    Hierarchy (View Summary)

    Index
    filterFn: (update: Update) => boolean | Promise<boolean>

    The custom predicate function.

    • Evaluates the custom predicate against the incoming update.

      Parameters

      • update: Update

        Incoming Telegram update.

      Returns Promise<boolean>

      Result of the predicate function.