Stay updated with the latest weather forecasts directly through Telegram!
Here’s how the Telegram bot looks in action:
Telegram Weather Bot is a project consisting of two main components:
-
nest-backend-bot:
A Telegram bot built with NestJS that integrates the OpenWeatherMap API and MongoDB to provide weather information to users. -
admin-panel:
A web-based admin panel to control and monitor users of the Telegram bot, as well as manage API keys.
root/
├── nest-backend-bot/ # Backend for the Telegram bot
└── admin-panel/ # Frontend admin panel to manage the bot
nest-backend-bot: Contains the NestJS backend project that powers the Telegram bot.admin-panel: Contains the React + Vite frontend project for the admin panel.
- Telegram Bot: Live Bot Link
- Admin Panel: Admin Panel Link //this will show my api (ik not good for production)
- Node.js (v16 or above)
- npm or yarn
- MongoDB
git clone https://github.com/rishabhknowss/Weather_bot.git
cd Weather_botCreate .env files for both nest-backend-bot and admin-panel.
TELEGRAM_BOT_TOKEN=your-tg-bot-token
WEATHER_API_KEY=openweather-api
CITY=lucknow
DATABASE_CONNECTION_STRING=mongodb-connection-string
VITE_API_BASE_URL=http://localhost:3000
VITE_GOOGLE_CLIENT_ID=your-google-client-id
cd nest-backend-bot
npm install
npm startcd ../admin-panel
npm install
npm run dev- Telegram Bot: Provides weather updates to users by fetching data from the OpenWeatherMap API.
- Admin Panel:
- View and manage Telegram bot users
- Handle and update API keys
- OAuth Google login for secure access
- Backend: NestJS, MongoDB, OpenWeatherMap API
- Frontend: React, Vite, Tailwind CSS, Axios, Google OAuth
Built by Rishabh

