This is a Telegram bot that can be used to manage groups on the platform. It was written to run on Bun/TypeScript, but can run on node.js as well.
The name Ada Lovelace was chosen because she was the first programmer in history, as the bot was initially created for a group of software development students.
bun install
bun prisma db pull
bun prisma generate
bun run ./src/index.ts
npm install
npm run dev
npm run build
npm run node-start
- PORT
- AUTH
- DATABASE_URL
- DEBUG
- TELEGRAM_BOT_TOKEN
- TELEGRAM_POLLING_TIMEOUT
- TELEGRAM_USER_ID
- TELEGRAM_USERNAME
- TELEGRAM_WEBHOOK_ACTIVE
The database used is MySQL, and the ORM used is Prisma.
The Telegram API is used to interact with the platform. The bot is able to manage groups, users, and messages.
The Combot Anti-Spam API is used to check if a user is a spammer. The bot will not allow a user to join a group if they are marked as a spammer and the AdaShield is on.
The AdaShield is a feature where the bot will check if a user is a spammer before allowing them to join a group. If the user is marked as a spammer, they are immediately banned.