The first version of the bot that provides various informational content. The bot works on the framework Telegraf.js.
- Reacting to some phrases
- Setting and event reminder
- Getting weather for the city
- Reading rss news from different sources
- Getting the exchange rate
- Bot features help
These instructions will help you run a copy of the project on your local machine for development and testing purposes.
For the project to work, the following dependencies must be installed on your system:
- Node.JS and NPM — Documentation
- Nodemon — Documentation
- Copy this repository to your local machine
- Run the command in the project folder
npm install
- Create a telegram bot token — Documentation
- Create a .env file at the root of the project (on the same level as package.json)
- Add a telegram bot token to the .env file
TELEGRAM_TOKEN="YOUR_TOKEN"
- [Optional] Create a OpenWeatherMap token — Documentation
- Add a OpenWeatherMap token to the .env file
WEATHER_SERVICE_TOKEN="YOUR_TOKEN"
- Add a OpenWeatherMap token to the .env file
- Start the project
npm start
Go to telegram, find there the bot you created to which the specified API token is attached. Get a list of available commands by writing to it:
/help