{"id":21396018,"url":"https://github.com/kanewi11/telegram-reaction-bot","last_synced_at":"2025-07-13T19:30:31.369Z","repository":{"id":164151436,"uuid":"552541899","full_name":"kanewi11/telegram-reaction-bot","owner":"kanewi11","description":"Bot for sending reactions to a Telegram post. With tdata support.","archived":false,"fork":false,"pushed_at":"2023-10-12T08:34:06.000Z","size":44,"stargazers_count":25,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2023-10-13T02:08:12.303Z","etag":null,"topics":["pyrogram","pyrogram-userbot","telegram","telegram-bot","telegram-bots","telegram-channel","telegram-client","telegram-reaction-bot","telegram-reactions","telegram-reactions-adder","telegram-userbot"],"latest_commit_sha":null,"homepage":"","language":"Python","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/kanewi11.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-10-16T20:25:31.000Z","updated_at":"2023-10-05T07:40:17.000Z","dependencies_parsed_at":"2023-06-02T03:30:23.974Z","dependency_job_id":null,"html_url":"https://github.com/kanewi11/telegram-reaction-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanewi11%2Ftelegram-reaction-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanewi11%2Ftelegram-reaction-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanewi11%2Ftelegram-reaction-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kanewi11%2Ftelegram-reaction-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kanewi11","download_url":"https://codeload.github.com/kanewi11/telegram-reaction-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225910644,"owners_count":17543829,"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":["pyrogram","pyrogram-userbot","telegram","telegram-bot","telegram-bots","telegram-channel","telegram-client","telegram-reaction-bot","telegram-reactions","telegram-reactions-adder","telegram-userbot"],"created_at":"2024-11-22T14:24:29.083Z","updated_at":"2024-11-22T14:24:29.688Z","avatar_url":"https://github.com/kanewi11.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Bot for posting reactions to a Telegram post.\n\n\u003cp align=\"center\"\u003e\n   \u003ca href=\"https://telegram.org\" target=\"_blank\"\u003e\n      \u003cimg width=\"50\" src=\"https://telegram.org/img/website_icon.svg?4\" alt=\"Telegram\"\u003e\n   \u003c/a\u003e   \n   \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\n   \u003ca href=\"https://github.com/pyrogram/pyrogram\" target=\"_blank\"\u003e\n      \u003cimg width=\"35\" src=\"https://camo.githubusercontent.com/23bd8586f8d0549172b03886618d5337c7c3f655220d81d35ce837b62639419d/68747470733a2f2f646f63732e7079726f6772616d2e6f72672f5f7374617469632f7079726f6772616d2e706e67\" alt=\"Pyrogram\"\u003e\n   \u003c/a\u003e\n\u003c/p\u003e\n\nBot puts reaction to new posts in the channel, group or chat. Reactions are set from all connected sessions, as well as automatic subscription to channels from these sessions!\n\n**Good stuff 👍:**\n* Automatically converts `TDATA to a Pyrogram session`.\n* Automatically converts a `Telethon session to a Pyrogram session`.\n\n## Launch Instructions\n1. Create an empty directory\n2. `git clone https://github.com/kanewi11/telegram-reaction-bot.git ./`.\n3. `python3 -m venv venv` or on windows `python -m venv venv`.\n4. `. venv/bin/activate` or on windows `\\venv\\Scripts\\activate`.\n5. `pip install -r requirements.txt` or in windows `pip install -r requirements_win.txt`.\n6. Add your channel name to `config.py`.\n7. **If you plan to use the TDATA converter**, go to `converters/tdata_to_telethon.py` and insert your `API_HASH` and `API_ID` (lines 19 and 20).\n8. `mkdir sessions` and `mkdir tdatas` _(or just create these two folders)_\n9. Add the session file and its configuration file to the `/sessions` directory ( _which we created in step 8_ ) or tdata files to the `/tdatas` folder (**Note the 7th point**). \nHere is an example:\n\n   ```\n      your_dir\n      └───reactionbot.py\n      │\n      └───sessions\n      │   │   8888888888.ini\n      │   │   8888888888.session\n      │   │   9999999999.ini\n      │   │   9999999999.session\n      │   │   98767242365.json\n      │   │   98767242365.session\n      │   │   ...\n      │\n      └───tdatas\n      │   └─── my_tdata\n      │   │   │ key_datas\n      │   │   │ ...\n      ...\n   ```\n10. `nohup python reactionbot.py \u0026`\n\n## Create a session file manually.\nCreate a file `my_account.json` ( _the file name can be anything_ ) in the directory `/sessions` :\n```\n{\n    \"api_id\": \"your_api_id\",\n    \"api_hash\": \"your_api_hash\",\n    \"phone_number\": \"your_phone_number\"\n}\n```\n\nAfter `python reactionbot.py`, in the console go through the account authorization steps and that's it, the session file will be created, you don't need to do this for the next times.\n\n## Where do I get `api_id` and `api_hash`?\n[🔗 Click me.](https://my.telegram.org/auth)\n\n## Sample configuration file\nYou can add more parameters that [pyrogram](https://github.com/pyrogram/pyrogram) supports.\n\n`sessions/888888888.ini`\n```\n[pyrogram]\napi_id = your_api_id\napi_hash = your_api_hash\nphone_number = 888888888\n\n# optional parameters\napp_version = '8.8.5'\ndevice_model = 'Vertu IVERTU'\nsystem_version = 'Android'\n```\n\n**OR** ( select one of the variants of the configuration file )\n\n`sessions/888888888.json`\n```\n{\n    \"api_id\": \"your_api_id\",\n    \"api_hash\": \"your_api_hash\",\n    \"phone_number\": \"your_phone_number\",\n    ...\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanewi11%2Ftelegram-reaction-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkanewi11%2Ftelegram-reaction-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanewi11%2Ftelegram-reaction-bot/lists"}