ultra-telegram-framework
    Preparing search index...

    Class Stage<C>

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Registers a handler for inline button clicks (callback_query).

      Parameters

      • actionName: string | RegExp

        String or regular expression to check callback_data

      • ...middlewares: Middleware<C>[]

        Functions that will be executed on a match

      Returns this

    • Registers a handler for a specific command (or an array of commands).

      Parameters

      • command: string | string[]

        Command name without the slash (e.g., 'start' or ['start', 'help'])

      • ...middlewares: Middleware<C>[]

        Functions that will be executed if the command matches

      Returns this