Skip to content

poe6umba/supa_simple_qt_tg_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

supa_simple_qt_tg_bot

just 2 files
h and cpp file (it not even lib 😱)
and this is enough to work with the Telegram API
1

What can it do

  • Сan send messages, pictures, videos
  • Сan send buttons with or without callbacks and react on this

How to use

Add basetelegramworker.h and basetelegramworker.сpp to your project

After that you can make a new class based on basetelegramworker
And override the handle methods

Or just override the handle methods in basetelegramworker.cpp

Example

This project is already an example
just write your token in main.c and run (checked in xubuntu 22.04, Qt version 5.15.3)

Example of using a bot

CI/CD notifier bot (run on build machine)
photo_2023-09-29_17-36-38

This bot send message from GSC program, when user press button on program
3

This bot get video from usb-camera and save it. User can get video or image.
2 4

About

just 2(two) file for work with Telegram API by Qt

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published