Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Telegram Bot

Description

Weather alert Telegram bot with scheduling capabilities.

Features

  • Weather updates on command
  • Scheduled alerts
  • Multiple commands
  • OpenWeatherMap API integration

Setup

  1. Get bot token from @BotFather on Telegram
  2. Get API key from openweathermap.org
  3. Set environment variables:
    • BOT_TOKEN
    • WEATHER_API_KEY

Stack

  • Language: Python
  • Libraries:
    • pyTelegramBotAPI==4.9.0
    • APScheduler==3.9.1
    • requests==2.28.2

Installation

pip install -r requirements.txt
python main.py

Commands

  • /start - Start bot
  • /weather - Get weather
  • /help - Show help

License

Open source for educational purposes.