Skip to content

Sunref/Telegram-Class-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

English | Português


Telegram Class Bot (C++ + Raspberry Pi)

Telegram bot developed in C++ to run on a Raspberry Pi Model B (2011/2012).

It automatically responds with:

  • Current class
  • Next class
  • Task management
  • Current weather and upcoming weather in São João da Boa Vista
  • Sends automatic notifications before classes and about task deadlines
  • Operates 24 hours a day as a Linux service (systemd)

Technologies

  • C++
  • libcurl (HTTP requests)
  • nlohmann/json (JSON parser)
  • Telegram Bot API
  • Open-Meteo API (weather)
  • systemd (24-hour execution)

Commands available on Telegram:

/aula
/proximaaula
/climahoje
/climaamanha
/tarefas
/add 
/del

How it works

The bot uses Long Polling to periodically query the Telegram API:

  1. Checks for new messages
  2. Processes commands
  3. Sends response
  4. Waits a few seconds
  5. Repeats

Project Objective

Project developed for learning:

  • Networks
  • REST APIs
  • C++ programming
  • Linux systems
  • 24-hour services
  • Embedded systems

Author

Developed for personal academic use.

About

Telegram bot that sends data on the day's classes and expected weather for advance planning

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages