This Telegram bot provides weather forecasts for user-specified cities. Users can add and delete cities to receive weather updates.
To set up the bot for development or personal use, follow these steps:
-
Clone the repository:
git clone https://github.com/ozermehmett/weather-forecaster-tg-bot.git
-
Install the required dependencies:
pip install -r requirements.txt
-
Create an .env file to store your Telegram Bot Token and Collect API Key:
TOKEN = your_telegram_bot_token
API = your_collectapi_key
To start and interact with the bot, follow these steps:
-
To start the bot, run:
python main.py
-
Commands
/start
: Initializes the conversation with the bot./add_city
: Adds a city to the user's city list./delete_city
: Deletes a city from the user's city list./weather
: Retrieves the weather forecast for the user's registered cities.
- Do not forget to give a start
- Then fork this repo, make it BETTER and do not forget to give a STAR