A Telegram bot that provides weather information with support for both Gregorian and Jalali calendars.
- 🌡️ Real-time weather information
- 📅 Dual calendar support (Gregorian & Jalali)
- ⏰ 24-hour weather forecast
- 🌍 Support for multiple cities
- 🔄 Daily weather notifications
- Clone the repository:
git clone https://github.com/imkarimkarim/Telegram-Weather-Bot.git
cd Telegram-Weather-Bot
- Install dependencies:
npm install
- 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
- Build and run:
npm run build
npm start
Run in development mode with hot reload:
npm run dev
/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
- Node.js >= 22.14.0
- Telegram Bot Token
- OpenWeather API Key
ISC