{"id":25030217,"url":"https://github.com/fadhil-riyanto/fadhil-riyanto-bot","last_synced_at":"2025-03-30T19:25:57.798Z","repository":{"id":250631127,"uuid":"834865845","full_name":"fadhil-riyanto/fadhil-riyanto-bot","owner":"fadhil-riyanto","description":"Fadhil personal telegram bot","archived":false,"fork":false,"pushed_at":"2025-01-02T00:38:12.000Z","size":485,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T21:59:24.435Z","etag":null,"topics":["telegram-bot","telegram-bot-api","tgbot"],"latest_commit_sha":null,"homepage":"","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/fadhil-riyanto.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}},"created_at":"2024-07-28T15:46:04.000Z","updated_at":"2025-01-02T00:38:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"75a3818e-6ed9-40fd-9e25-6d5c5e24e585","html_url":"https://github.com/fadhil-riyanto/fadhil-riyanto-bot","commit_stats":null,"previous_names":["fadhil-riyanto/telegram-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadhil-riyanto%2Ffadhil-riyanto-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadhil-riyanto%2Ffadhil-riyanto-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadhil-riyanto%2Ffadhil-riyanto-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadhil-riyanto%2Ffadhil-riyanto-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fadhil-riyanto","download_url":"https://codeload.github.com/fadhil-riyanto/fadhil-riyanto-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246367514,"owners_count":20765896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["telegram-bot","telegram-bot-api","tgbot"],"created_at":"2025-02-05T21:58:06.414Z","updated_at":"2025-03-30T19:25:57.766Z","avatar_url":"https://github.com/fadhil-riyanto.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Fadhil's telegram bot\npersonal assistant telegram bot\n\n## Dependencies \n- [TgBot](https://github.com/reo7sp/tgbot-cpp)\n- Boost\n- OpenSSL\n- [fmt](https://github.com/fmtlib/fmt)\n- Zlib\n- cURL\n- [log.c](https://github.com/fadhil-riyanto/log.c-patched) (submodule)\n- [pugixml](https://github.com/zeux/pugixml) (submodule, checkout tags newest please)\n- [inih](https://github.com/benhoyt/inih) (submodule)\n- [googletest](https://github.com/google/googletest) (test)\n\n## build instructions\ncurrenly, supported platform only linux. I have no plans to make a windows version.\n\nmake sure all dependencies are installed, and you need \u003cb\u003eseveral GB\u003c/b\u003e of ram.\n\n### 1. Install dependencies\n\npacman\n```\nsudo pacman -Syu\nsudo pacman -S cmake boost openssl zlib curl fmt\n```\n\noptional (testing)\n```\nsudo pacman -S gtest\n```\n\n### 2. build tgbot-cpp from source\n```\ngit clone https://github.com/fadhil-riyanto/tgbot-cpp\ncd tgbot-cpp\ncmake .\nmake -j4\nsudo make install\n```\n\n### 3. build telegram-bot-api server\nthis server make your bot fast than default api.telegram.org\n\n```\ngit clone --recursive https://github.com/tdlib/telegram-bot-api.git\ncd telegram-bot-api\nmkdir build\ncd build\ncmake -DCMAKE_BUILD_TYPE=Release ..\ncmake --build . --target install\n```\n\nnb: use `-DCMAKE_BUILD_TYPE=debug` if you want debug binary mode\n\nstart the service, you need api_id and api_hash from https://my.telegram.org/\n\n```\ntelegram-bot-api --api-id=YOUR_API_ID --api-hash=YOUR_API_HASH --local --http-ip-address=127.0.0.1\n```\n\n### 4. build the bot\n\n```\ngit clone https://github.com/fadhil-riyanto/fadhil-riyanto-bot.git\n\ncd fadhil-riyanto-bot\ngit submodule update\nmkdir build\ncmake ..\nmake -j4\n```\n\n### 4. build server mode\nThis will use api.telegram.org instead selfhosted server, you can skip step 3\n\nadd `add_compile_definitions(\"-DSERVER_ENV\")` to the CMakeLists.txt\n\n## Licence\nlicense: [GPL-3.0](https://github.com/fadhil-riyanto/fadhil-riyanto-bot/blob/master/license)\n\n\n## Maintainer\nFadhil Riyanto \u003cme@fadev.org\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffadhil-riyanto%2Ffadhil-riyanto-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffadhil-riyanto%2Ffadhil-riyanto-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffadhil-riyanto%2Ffadhil-riyanto-bot/lists"}