{"id":19736656,"url":"https://github.com/fosslife/tg2twitter","last_synced_at":"2026-06-09T02:32:43.428Z","repository":{"id":50173075,"uuid":"250628548","full_name":"fosslife/tg2twitter","owner":"fosslife","description":"Sending Tweets from your Telegram channel, because why not","archived":false,"fork":false,"pushed_at":"2022-12-08T07:44:44.000Z","size":24,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-10T19:03:13.365Z","etag":null,"topics":["telegram","telegram-bot","twitter","twitter-api"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fosslife.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-27T19:35:34.000Z","updated_at":"2023-07-05T08:55:35.000Z","dependencies_parsed_at":"2022-08-31T08:51:50.768Z","dependency_job_id":null,"html_url":"https://github.com/fosslife/tg2twitter","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/fosslife%2Ftg2twitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fosslife%2Ftg2twitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fosslife%2Ftg2twitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fosslife%2Ftg2twitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fosslife","download_url":"https://codeload.github.com/fosslife/tg2twitter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241062599,"owners_count":19902921,"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","telegram-bot","twitter","twitter-api"],"created_at":"2024-11-12T01:08:03.850Z","updated_at":"2026-06-09T02:32:38.409Z","avatar_url":"https://github.com/fosslife.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram 2 Twitter bot\n\n## Description\nThis bot lets you send a text message to any of your telegram channel, and then it will be automatically posted to\nyour Twitter account as well. Only text is supported as of now. \n\n## Installation\n```\ngit clone https://github.com/fosslife/tg2twitter.git\n```\n\n```\npipenv shell\npipenv install\n```\n\nmake a file called `.env`. Get following keys from respective developer account\n```\nTG_API_ID=''\nTG_API_HASH=''\n\nTWITTER_CLIENT_KEY=''\nTWITTER_CLIENT_SECRET=''\n\nTWITTER_ACCESS_TOKEN=''\nTWITTER_ACCESS_TOKEN_SECRET=''\n\nCHANNEL_NAME=your_channel_name_or_id\n```\n\nGetting twitter API keys is a Huge mess. I followed [this](https://python-twitter.readthedocs.io/en/latest/getting_started.html) tutorial\n\nThen run the bot\n```\npython3 main.py\n```\n\n\n## Usage\n\nIf bot runs successfully you need to sign in to your telegram account first. after that\njust send a message with `.tweet` at the start. bot will automatically post that message\nto your twitter\nex:\n```\n.tweet Hello Telegram and Twitter\n```\n\nPS: just send this to channel, the bot will automatically delete this entire message\nimmedietly, remove the `.tweet` part from message automatically and post the original\ntext in both places. \n\n\n\n## TODO\n- Make stringsession for easy deployments\n- character limit","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffosslife%2Ftg2twitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffosslife%2Ftg2twitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffosslife%2Ftg2twitter/lists"}