A better Lappbot. Built upon the legacy of the thing I made with Typescript in the past.
Whatever Rose has, Lappbot is trying to reimplement it, so yeah.
- Go 1.25+
- PostgreSQL
- Valkey
- Local Telegram Bot API (aiogram/telegram-bot-api or something idk)
-
git clone https://github.com/irvanmalik48/lappbot-go -
cd lappbot-go -
Copy
.env.exampleto.env(or create it) and fill in your details.- Note: For Local Bot API, ensure you provide
TELEGRAM_API_IDandTELEGRAM_API_HASH. - Set
BOT_API_URLcorrectly (e.g.,http://127.0.0.1:8081or whatever port you configured). - Long Polling: To use Long Polling (default), ensure
WEBHOOK_URLis empty. The bot will automatically delete any existing webhook on startup.
- Note: For Local Bot API, ensure you provide
-
The bot handles migrations automatically on startup using
golang-migrate. -
go mod download go run cmd/bot/main.go
- Ensure Docker and Docker Compose are installed.
- Run the stack:
docker-compose up -d --build
Use /help to see all commands, duh.
RCCL 2.0