Skip to content

The application is a Telegram bot that provides weather updates for cities. Users can subscribe to receive weather updates and get current weather data for specific cities.

Notifications You must be signed in to change notification settings

Rajeshds20/Weather_Telegram_Bot-Complete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Weather_Telegram_Bot

The application is a Telegram bot that provides weather updates for cities. Users can subscribe to receive weather updates and get current weather data for specific cities.

Weather Update Telegram Bot

Telegram Bot Node Express MongoDB Rest API React

This is a Telegram bot that provides weather updates for cities. Users can subscribe to receive weather updates and get current weather data for specific cities.

Features

  • Subscribe to weather updates
  • Get current weather data for a specific city
  • Unsubscribe from weather updates
  • Get User's usernames
  • Get Usage Statistics

Installation

  1. Clone the repository:

    git clone https://github.com/Rajeshds20/Weather_Telegram_Bot-Complete.git
  2. Navigate to the Directory

    cd Weather_Telegram_Bot-Complete
  3. Open separate terminals for front and backend parts

    Front End Admin Panel Part

    cd frontend
    • Install the dependencies:

      npm install
    • Start the Development server

      npm start

    Backend Telegram Bot Part

    cd backend
    • Install the dependencies:

      npm install
    • Start the Development server

      npm start
  4. Configure environment variables:

    • Create a .env file in the project root directory.

    • Add the following environment variables:

      BOT_TOKEN=your-telegram-bot-token
      WEATHER_API_KEY=your-openweathermap-api-key
      MONGO_URI=your-mongodb-connection-string
      PORT=your-port-number
  5. Start the application:

    npm start
  6. Open Telegram and search for your bot by its username.

  7. Start a conversation with the bot and use the available commands.

Usage

  • Manage and view the users and statistics in Admin Panel of the Bot

  • In Telegram Bot

    • /subscribe - Subscribe to weather updates.
    • /unsubscribe - Unsubscribe from weather updates.
    • /weather - Get the current weather data for a specific city.
    • /help - Display the list of available commands.

Technologies Used

  • Node.js
  • Express.js
  • MongoDB
  • Telegraf (Telegram Bot Framework)
  • Axios (HTTP requests)
  • React

Creators

  • Rajesh

License

This project is licensed under the MIT License.

Feel free to contribute and make this Telegram bot even better!

About

The application is a Telegram bot that provides weather updates for cities. Users can subscribe to receive weather updates and get current weather data for specific cities.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published