Development of a Telegram Bot

August -2023

Development of a Telegram Bot for Accessing Key Hydroelectric Data

I developed this Telegram bot for the hydroelectric plant on my own initiative. My supervisors had made it a habit to frequently check reservoir levels and power generation, especially during the winter months.

Since this happened while I was Head Supervisor of the Control Center, I decided to create this bot to allow them to retrieve information directly from Telegram, reducing distractions for my team and enabling them to focus on their assigned tasks.

How It Works

  • The bot is built with NodeJS and uses the Telegraf library for Telegram integration.

  • It fetches real-time reservoir levels, power generation data, and weather forecasts.

  • For weather data, the backend performs web scraping on Weather Underground using Puppeteer to extract the latest forecast image, which is then sent via the bot.

This solution streamlined information retrieval, improving efficiency and reducing unnecessary interruptions in the control center.

Development of a Telegram Bot

I developed this Telegram bot for the hydroelectric plant

8/12/20231 min read