The dev/ directory contains a consumer app for local testing. It is not published with the package.
The wippy.lock file points to the local src/ directory, so changes to the package source are picked up immediately:
directories:
modules: .wippy
src: ./dev
replacements:
- from: butschster/telegram
to: ./src- Get a bot token from @BotFather
- Copy your token into
dev/.env - Expose your local server (e.g. via ngrok:
ngrok http 8080) - Set
TELEGRAM_WEBHOOK_URLto your ngrok URL +/telegram/webhook - Start the server:
wippy run
- Register the webhook:
wippy run -x telegram.handler:register_webhook
- Send
/startto your bot
# Start the dev server
wippy run
# Register webhook with Telegram
wippy run register-webhook
# Remove webhook
wippy run delete-webhook
# Lint a specific namespace
wippy lint --ns=telegram
wippy lint --ns=telegram.*
wippy lint --ns=telegram.sdkdev/
├── _index.yaml # app: HTTP server, router, env storage, ns.dependency
└── .env # Bot token and webhook config