Teleforge API Reference - v0.1.0
    Preparing search index...

    Module bot/src

    Routing primitives, contexts, and helpers for Telegram bot command and Mini App data handling.

    Classes

    BotRouter

    Functions

    handleMiniAppReturnData
    createDefaultReturnHandlers
    initiateCoordinatedFlow
    handleMiniAppReturn
    createDefaultHelpHandler
    createDefaultStartHandler
    createDefaultWebAppDataHandler
    parseWebAppPayload
    createWebAppReplyOptions
    createMiniAppButton
    createFlowCallback
    handleFlowCallback
    createSignedPayload
    extractFlowContext
    sendFlowInit
    createUpdateContext
    createCommandContext
    createCallbackQueryContext
    createWebAppContext
    createWebAppDataContext
    createBotRuntime
    isOrderPayload
    isFormPayload
    isEventPayload
    normalizeCommandName
    parseCommand
    expressAdapter
    fastifyAdapter
    nodeHttpAdapter
    createWebhookHandler
    parseWebhookBody
    normalizeHeaders
    detectUpdateType

    Interfaces

    MiniAppReturnData
    ReturnHandlers
    CoordinatedFlowOptions
    MiniAppButtonOptions
    FlowCallbackOptions
    FlowCallbackData
    FlowInitOptions
    FlowResult
    MessageTemplate
    BotRouterOptions
    TelegramChat
    TelegramUser
    TelegramWebAppData
    TelegramCallbackQuery
    TelegramCallbackAnswer
    TelegramInlineKeyboardButton
    TelegramReplyMarkup
    ReplyOptions
    TelegramMessage
    TelegramUpdate
    BotInstance
    UpdateContext
    CommandContext
    WebAppContext
    WebAppDataContext
    CallbackQueryContext
    GeneratedCommandResponse
    BotCommandDefinition
    ManifestCommandDefinition
    RegisteredCommand
    CreateBotRuntimeOptions
    BotRuntime
    OrderPayload
    FormPayload
    EventPayload
    ParsedCommand
    WebhookConfig
    WebhookRequest
    WebhookResult
    ExpressLikeRequest
    ExpressLikeResponse
    FastifyLikeRequest
    FastifyLikeReply

    Type Aliases

    FlowCallbackSource
    FlowContext
    FlowContextSource
    CommandHandler
    CallbackQueryHandler
    WebAppHandler
    WebAppDataHandler
    NextFunction
    Middleware
    WebhookHandler
    WebhookUpdate
    ExpressWebhookHandler
    FastifyWebhookHandler

    Variables

    templates

    References

    MiniAppLinkOptions → MiniAppLinkOptions