wasmer run vivaneiona/sasha-bot
Sasha Business Bot
Telegram webhook bot для Wasmer Edge на FastAPI.
Проект переложен на структуру fastapi-wasmer-starter: src/main.py
экспортирует ASGI-переменную app, src/bot.py держит HTTP-слой, а
src/handler.py собирает Telegram webhook response.
Локальный запуск
just install
just run
Health endpoint:
curl http://127.0.0.1:8000/
Webhook endpoint:
curl -X POST http://127.0.0.1:8000/webhook \
-H "Content-Type: application/json" \
-d '{"update_id":1,"message":{"message_id":1,"chat":{"id":42,"type":"private"},"date":1,"text":"hi"}}'
Wasmer
wasmer.toml описывает package для Wasmer Registry: Python 3.13 runtime,
ASGI-запуск через uvicorn src.main:app и WASIX-зависимости, которые готовит
just build-wasix.
just setup
Preview-деплой без переключения production:
just deploy-preview
Production-деплой:
just deploy
Бот отвечает на любое обычное или business-сообщение:
Привет!