Skip to content

imkarimkarim/Telegram-Weather-Bot

Repository files navigation

Telegram Weather Bot 🌤️

A Telegram bot that provides weather information with support for both Gregorian and Jalali calendars.

Features

  • 🌡️ Real-time weather information
  • 📅 Dual calendar support (Gregorian & Jalali)
  • ⏰ 24-hour weather forecast
  • 🌍 Support for multiple cities
  • 🔄 Daily weather notifications

Screenshot

Weather Bot Screenshot

Setup

  1. Clone the repository:
git clone https://github.com/imkarimkarim/Telegram-Weather-Bot.git
cd Telegram-Weather-Bot
  1. Install dependencies:
npm install
  1. Create a .env file with the following variables:
BOT_TOKEN=your_telegram_bot_token
OPENWEATHER_API_KEY=your_openweather_api_key
CHAT_ID=your_telegram_chat_id
  1. Build and run:
npm run build
npm start

Development

Run in development mode with hot reload:

npm run dev

Commands

  • /start - Start the bot
  • /weather <city> - Get weather for a specific city
  • /setdefault <city> - Set your default city
  • /reset - Reset to default city (Astaneh-ye Ashrafiyeh)
  • /help - Show available commands

Requirements

  • Node.js >= 22.14.0
  • Telegram Bot Token
  • OpenWeather API Key

License

ISC

About

🌤️ Telegram bot that shows weather and sends daily updates at 6 AM

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published