Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.42 KB

README.md

File metadata and controls

34 lines (25 loc) · 1.42 KB

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