Skip to content

Latest commit

 

History

History
 
 

Telegram-Weather-Bot

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Prerequisites for running the bot

  • Python 3.6 or higher
  • pip3
  • python-telegram-bot
  • requests

How to run the bot

  1. Clone the repository
  2. Open the terminal and navigate to the directory where the repository is cloned
  3. Run the following command to install the required packages
pip3 install -r requirements.txt
  1. Add your bot token in the main.py file
  2. Run the following command to run the bot
python3 main.py
  1. Open Telegram and search for the bot with the username you have given.
  2. Start the bot and send the location to get the weather forecast

How to use the bot

  1. Send the location to the bot
  2. The bot will send the weather forecast for the given city
  3. The bot will send the temperature, wind direction, wind speed, humidity,pressure, sunrise ,sunset time and day length

Developer

  • [Arvind Srivastav]