Simple bot written with Opengram
- Inline mode search in Telegram Bots API reference with pagination
- User authentication with MongoDB / Mongoose
- Sending id from inline mode
- Media group handling example with @opengram/media-group
- Logging with winston
- Graceful stopping
- Internalization with i18next
git clone https://github.com/OpengramJS/Opengram_bot.git
cd Opengram_bot
Basic env configuration:
BOT_TOKEN=
MONGODB_URI=mongodb+srv://user:password@domain/dbName
DROP_PENDING_ON_START=true
NODE_ENV=production
npm i
pm2 start
docker-compose up -d