This is a Telegram bot that allows users to get the current temperature for a specified location. The bot supports displaying the temperature in both Celsius and Fahrenheit scales, with an inline button to toggle between the two scales.
- Ensure you have Python.
- Install the dependencies using
pip install -r requirements.txt
. - Obtain Telegram Bot API key. Click Here.
- Obtain Weather API Key from https://weatherapi.com.
- Rename
.env.example
to.env
and put the obtained values there. - Run the script using
py app.py
and message/start
or use the button on your bot.
DEMO: @AdibPythonTest_bot
Feel free to fork the repository and contribute improvements or additional features.