{"id":13338900,"url":"https://github.com/SailorMax/twitter2telegram","last_synced_at":"2025-03-11T11:30:56.339Z","repository":{"id":108597968,"uuid":"464080909","full_name":"SailorMax/twitter2telegram","owner":"SailorMax","description":"Copy tweets from Twitter channel to Telegram channel","archived":false,"fork":false,"pushed_at":"2023-01-02T12:00:37.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-23T22:20:38.547Z","etag":null,"topics":["telegram","twitter"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SailorMax.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":"2022-02-27T08:34:52.000Z","updated_at":"2024-08-14T09:20:17.000Z","dependencies_parsed_at":"2023-03-09T08:45:15.119Z","dependency_job_id":null,"html_url":"https://github.com/SailorMax/twitter2telegram","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SailorMax%2Ftwitter2telegram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SailorMax%2Ftwitter2telegram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SailorMax%2Ftwitter2telegram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SailorMax%2Ftwitter2telegram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SailorMax","download_url":"https://codeload.github.com/SailorMax/twitter2telegram/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243025115,"owners_count":20223735,"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","twitter"],"created_at":"2024-07-29T19:17:52.886Z","updated_at":"2025-03-11T11:30:56.331Z","avatar_url":"https://github.com/SailorMax.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twitter to Telegram\n\nCopy tweets from one Twitter channel to Telegram channel. Example of the result you can found [here](https://t.me/w_humor_mirror).\n\n## Peculiarities\n- work via Twitter API v2 (Essential mode)\n- work via Telegram Bot API\n- standalone solution\n\n## Warning\nAfter start usage do not delete `[#!n82an48]`-like ID from target Telegram channel description! By this ID the script track last imported tweet. If you remove it, import starts \"from begin\" (100 last tweets).\n\n## Guide\n1. Get Twitter API Bearer Token from [here](https://developer.twitter.com/)\n2. Go to [@BotFather](https://t.me/botfather) in Telegram and create a Bot to get `Access Token`\n3. Setup to Bot for target channel next permissions: `Change channel info` and `Post messages`\n4. Create and fill `.env` based on `.env.skel` (for local use) OR copy it's variables to `Settings/Secrets/Actions` (GitHub) or `Config Vars` (Heroku)\n5. For local use run the script by executing:\n```sh\n$ pip3 install -r requirements.txt\n$ python3 twitter2telegram.py\n# or `python3 repeater.py 60` to copy new tweets each 60 minutes\n```\n\n## Deploying to Heroku\n```sh\n$ heroku create\n$ git push heroku main\n$ heroku open\n```\nor\n\n[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSailorMax%2Ftwitter2telegram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSailorMax%2Ftwitter2telegram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSailorMax%2Ftwitter2telegram/lists"}