https://github.com/sabirivan/weather-telegram-chatbot
This is a simple Telegram bot created to display the weather at the user's request.
https://github.com/sabirivan/weather-telegram-chatbot
chatbot openweathermap-api php8 telegram
Last synced: 9 months ago
JSON representation
This is a simple Telegram bot created to display the weather at the user's request.
- Host: GitHub
- URL: https://github.com/sabirivan/weather-telegram-chatbot
- Owner: SabirIvaN
- License: unlicense
- Created: 2023-11-22T14:45:25.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-28T10:25:50.000Z (over 2 years ago)
- Last Synced: 2023-11-28T11:33:23.389Z (over 2 years ago)
- Topics: chatbot, openweathermap-api, php8, telegram
- Language: PHP
- Homepage:
- Size: 704 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Weather Telegram Chatbot
This is a simple Telegram bot created to display the weather at the user's request.
## Launch Requirements
To launch the bot , you need:
- **PHP** version 8.2.8 and higher;
- **Composer** version 2.4.2 and higher;
- **Telegram** and **OpenWeather** profiles.
Also, for the bot to work, the username and Telegram token of the bot and the key from openweathermap are required. For more information, follow the links – [Telegram Bot API](https://core.telegram.org/bots/api) and [OpenWeather API](https://openweathermap.org/current#name).
## Launch
To launch the bot, follow these steps:
1. Install Composer dependencies using the `make install` Terminal command.
2. Make a copy of the file config.example.php , in the app/config directory, in the same directory and rename it to config.php.
3. After that, enter the `BOT_NAME` username of your Telegram bot, the `BOT_TOKEN` token of your bot, and the OpenWeather key in `OPEN_WEATHER_MAP_API_KEY`.
4. Run the `make run` command in the Terminal.
5. If you need to update the Composer dependency, you can use the `make update` command.