Coder Social home page Coder Social logo

kapil9027 / astconsulting-task Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 179 KB

I am thrilled to present my latest creation, the Telegram Weather Update Bot. This bot offers an innovative solution for users to stay updated on the weather conditions. With two key commands, it provides a seamless experience for weather enthusiasts.

JavaScript 85.73% HTML 2.56% CSS 11.71%
cron-jobs nodejs telegram-bot weather-app

astconsulting-task's Introduction

Telegram Bot for daily Weather Update

I am thrilled to present my latest creation, the Telegram Weather Update Bot. This bot offers an innovative solution for users to stay updated on the weather conditions. With two key commands, it provides a seamless experience for weather enthusiasts.

The first command is "/subscribe [cityname]," which enables users to subscribe to daily weather updates. At 9:00 AM, a cron job, powered by the node-cron package, retrieves active subscriptions from the database. The bot then sends personalized weather updates to each user's chatId, based on their selected city. This functionality is implemented using the node-telegram-bot-api.

The second command, "/weather [cityname]," allows users to instantly retrieve weather details for any city, without the need for a subscription.

You can find the Telegram Bot Handle at t.me/WeatherUpdateASTBot.

To enhance the user experience, I have developed an admin panel. It provides comprehensive features for managing user accounts, including deletion and subscription blocking. Additionally, I have implemented a bot settings area that allows users to easily update their API keys. To handle these tasks, I have created a REST API that fetches data from a MongoDB database, which stores information such as subscribed users and bot settings. The UI part of the admin portal is developed using react.js.

For communication between the Telegram bot and my backend, I have utilized the node-telegram-bot-api library, leveraging the provided API key.

You can explore the project further on the GitHub repository at https://github.com/KAPIL9027/AstConsulting-Task.

Stay connected and informed with the Telegram Weather Update Bot.

Tech Stack

Client: React.js, Telegram Bot

Backend MongoDb, Express and Node.js

Screenshots

App Screenshot

App Screenshot

Demo

https://clipchamp.com/watch/wm5JPB25L8b

astconsulting-task's People

Contributors

kapil9027 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.