This repository is a template for creating a Telegram bot in JavaScript. It uses grammY
- Categories for commands
- Command handler (add commands in commands)
- Error handler
- Command aliases (check 8ball command, can add multiple aliases)
/start
- Start the bot
/help
- Show help
/8ball
- Ask the magic 8-ball a question
BOT_TOKEN
- Telegram bot token, get it from @BotFather
OR
- Clone this repository
- Update the
.env.example
file with your BOT_TOKEN - Rename the file by removing the
.example
extension. - Install dependencies:
yarn
- Start the bot:
yarn start
Telegram-JavaScript-Bot is licensed under the MIT License