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

    Class MessageFilter

    Filter that evaluates incoming messages using a custom predicate function.

    const customFilter = new MessageFilter((msg) => msg.text?.startsWith("!") ?? false);
    

    Hierarchy (View Summary)

    Index
    • Evaluates the predicate on update.effective_message.

      Parameters

      • update: Update

        Incoming Telegram update.

      Returns Promise<boolean>

      true if the message satisfies the predicate.