{"id":21023439,"url":"https://github.com/quasarapp/qtbot","last_synced_at":"2026-02-26T08:44:09.758Z","repository":{"id":197177470,"uuid":"697853643","full_name":"QuasarApp/qTbot","owner":"QuasarApp","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-02T19:15:27.000Z","size":354,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-09T07:49:29.895Z","etag":null,"topics":["bot","chatbot","qt","telegram-bot"],"latest_commit_sha":null,"homepage":"https://quasarapp.ddns.net:3031/docs/QuasarApp/qTbot/latest/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/QuasarApp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-09-28T15:53:48.000Z","updated_at":"2026-01-06T13:48:38.000Z","dependencies_parsed_at":"2023-10-27T22:29:32.716Z","dependency_job_id":"aa1ce0e2-a0e5-4727-968f-423080e1e170","html_url":"https://github.com/QuasarApp/qTbot","commit_stats":null,"previous_names":["quasarapp/qtbot"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/QuasarApp/qTbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuasarApp%2FqTbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuasarApp%2FqTbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuasarApp%2FqTbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuasarApp%2FqTbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QuasarApp","download_url":"https://codeload.github.com/QuasarApp/qTbot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuasarApp%2FqTbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29854332,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T22:37:40.667Z","status":"online","status_checked_at":"2026-02-26T02:00:06.774Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","chatbot","qt","telegram-bot"],"created_at":"2024-11-19T11:18:10.330Z","updated_at":"2026-02-26T08:44:09.740Z","avatar_url":"https://github.com/QuasarApp.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# qTbot \nThis is Qt library for working with chat bots. \n\nAt this time This library supports next platforms:\n* Telegram Rest (80%) - implemented only processing and sending messages and download files.\n\n## Build and Include\n* cd yourRepo\n* git submodule add https://github.com/QuasarApp/qTbot.git # add the repository of qTbot into your repo like submodule\n* git submodule update --init --recursive\n* Include in your CMakeLists.txt file the main CMakeLists.txt file of qTbot library\n\n    ```cmake\n    add_subdirectory(qTbot)\n    ```\n    \n* link the qTbot library to your target\n    ```cmake\n    target_link_libraries(yourApp PUBLIC qTbot)\n    ```\n* rebuild yuor project\n\n\n## Using\n\n```cpp\n\n#include \u003cqTbot/telegramrestbot.h\u003e\n#include \u003cqTbot/messages/telegrammsg.h\u003e\n#include \u003cqTbot/messages/telegramupdate.h\u003e\n\nint main(int argc, char *argv[]) {\n\n    QCoreApplication app(argc, argv);\n\n    qTbot::TelegramRestBot bot;\n\n    QObject::connect(\u0026bot, \u0026qTbot::TelegramRestBot::sigReceiveUpdate, [\u0026bot, \u0026filesStack](auto){\n        while(auto\u0026\u0026 update = bot.takeNextUnreadUpdate()) {\n\n            if (auto\u0026\u0026 tupdate = update.dynamicCast\u003cqTbot::TelegramUpdate\u003e()) {\n\n                if (tupdate-\u003econtains(tupdate-\u003eMessageUpdate)) {\n\n                    if (auto\u0026\u0026 tmsg = tupdate-\u003emessage()) {\n                        if (tmsg-\u003econtains(tmsg-\u003eDocument)) {\n                            bot.getFile(tmsg-\u003edocuments()-\u003efileId(), qTbot::iFile::Local);\n                        }\n\n                        if (tmsg-\u003econtains(tmsg-\u003eImage)) {\n                            bot.getFile(tmsg-\u003eimage()-\u003efileId(), qTbot::iFile::Local);\n                        }\n\n                        if (tmsg-\u003econtains(tmsg-\u003eAudio)) {\n                            bot.getFile(tmsg-\u003eaudio()-\u003efileId(), qTbot::iFile::Local);\n                        }\n                        bot.sendSpecificMessage({tmsg-\u003echatId(), \"I see it\"}, tmsg-\u003emessageId());\n                    }\n\n                }\n            }\n        }\n    });\n\n    bot.login(\"6349356184:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\");\n    \n    return app.exec();\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquasarapp%2Fqtbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquasarapp%2Fqtbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquasarapp%2Fqtbot/lists"}