NodeJS and telegraf based telegram bot. You can test it here
- Easy add command system with dynamic /help and popup suggestions list
- Easy to create any button menu
- Cached access to the database, which speeds up the process several times.
To run this project, you will need to add the following environment variables to your .env file
TOKEN
Telegram bot token. You can get your own in @BotFather
DB_TOKEN
Read more here
ownerID
Your telegram id
logID
Id of chat where you wanna see logs ("user used a command", etc) and error messages
whereImRunning
Optional. Will shown when users uses /version command
Clone the project
git clone https://github.com/xiller228/telegram-bot
Go to the project directory
cd telegram-bot
Install dependencies
npm install
Start the server
node .