{"id":23536350,"url":"https://github.com/developerfred/social-crosspost-bot","last_synced_at":"2025-05-14T22:33:07.042Z","repository":{"id":266806374,"uuid":"896142186","full_name":"developerfred/social-crosspost-bot","owner":"developerfred","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-29T16:27:28.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-11T20:38:30.102Z","etag":null,"topics":[],"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/developerfred.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-29T16:24:40.000Z","updated_at":"2024-11-29T16:27:32.000Z","dependencies_parsed_at":"2024-12-06T08:59:05.878Z","dependency_job_id":"268ab018-f521-466c-aad8-dbf109f01890","html_url":"https://github.com/developerfred/social-crosspost-bot","commit_stats":null,"previous_names":["developerfred/social-crosspost-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developerfred%2Fsocial-crosspost-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developerfred%2Fsocial-crosspost-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developerfred%2Fsocial-crosspost-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developerfred%2Fsocial-crosspost-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developerfred","download_url":"https://codeload.github.com/developerfred/social-crosspost-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254239529,"owners_count":22037721,"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":[],"created_at":"2024-12-26T02:19:31.175Z","updated_at":"2025-05-14T22:33:06.974Z","avatar_url":"https://github.com/developerfred.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Social Media Cross-Posting Bot\n\nA powerful Telegram bot that automatically cross-posts content to multiple social media platforms (Twitter/X, Bluesky, and Farcaster) based on community reactions.\n\n## Features\n\n- **Automated Cross-Posting**: Automatically shares content across multiple platforms when reaction threshold is met\n- **Media Support**: Handles text, images, videos, and GIFs\n- **Reaction-Based**: Posts are shared only after receiving sufficient community approval (default: 7 reactions)\n- **Time-Sensitive**: Posts expire after 2 hours to maintain content relevance\n- **Clean Interface**: Minimal bot interaction in group chats\n- **Docker Support**: Easy deployment using Docker containers\n\n## Prerequisites\n\n- Python 3.11 or higher\n- Docker and Docker Compose (for containerized deployment)\n- API credentials for:\n  - Telegram Bot\n  - Twitter/X Developer Account\n  - Bluesky Social\n  - Farcaster\n\n## Installation\n\n### Using Docker (Recommended)\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/developerfred/social-crosspost-bot\ncd social-crosspost-bot\n```\n\n2. Create and configure the `.env` file:\n```bash\ncp .env.example .env\n# Edit .env with your API credentials\n```\n\n3. Build and start the container:\n```bash\ndocker-compose up -d\n```\n\n### Manual Installation\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/developerfred/social-crosspost-bot\ncd social-crosspost-bot\n```\n\n2. Create and activate a virtual environment:\n```bash\npython -m venv venv\nsource venv/bin/activate  # On Windows: venv\\Scripts\\activate\n```\n\n3. Install dependencies:\n```bash\npip install -r requirements.txt\n```\n\n4. Configure environment variables:\n```bash\ncp .env.example .env\n# Edit .env with your API credentials\n```\n\n5. Run the bot:\n```bash\npython bot.py\n```\n\n## Configuration\n\nCreate a `.env` file with the following variables:\n\n```env\n# Telegram\nTELEGRAM_TOKEN=your_telegram_token\n\n# Twitter/X\nTWITTER_BEARER_TOKEN=your_twitter_bearer_token\nTWITTER_API_KEY=your_twitter_api_key\nTWITTER_API_SECRET=your_twitter_api_secret\nTWITTER_ACCESS_TOKEN=your_twitter_access_token\nTWITTER_ACCESS_SECRET=your_twitter_access_secret\n\n# Bluesky\nBLUESKY_EMAIL=your_bluesky_email\nBLUESKY_PASSWORD=your_bluesky_password\n\n# Farcaster\nFARCASTER_MNEMONIC=your_farcaster_mnemonic\n```\n\n## Usage\n\n1. Add the bot to your Telegram group\n2. Send a message with the #topost hashtag\n3. Group members can react with 👍\n4. Once the message receives 7 reactions within 2 hours, it will be automatically posted to all configured platforms\n\n### Bot Commands\n\n- `/start` - Initialize the bot in a group\n\n### Message Format\n\n```\nYour message content here #topost\n```\n\n## Customization\n\nYou can modify the following constants in `bot.py`:\n\n- `REQUIRED_REACTIONS`: Number of reactions needed before posting (default: 7)\n- `EXPIRATION_HOURS`: How long posts remain valid for reactions (default: 2)\n\n## Monitoring and Maintenance\n\n### View Logs\n\nUsing Docker:\n```bash\ndocker-compose logs -f\n```\n\nManual installation:\n```bash\ntail -f bot.log\n```\n\n### Stop the Bot\n\nUsing Docker:\n```bash\ndocker-compose down\n```\n\nManual installation: Use `Ctrl+C` in the terminal running the bot\n\n## Contributing\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- [python-telegram-bot](https://github.com/python-telegram-bot/python-telegram-bot)\n- [tweepy](https://github.com/tweepy/tweepy)\n- [atproto](https://github.com/bluesky-social/atproto)\n- [farcaster-py](https://github.com/farcasterxyz/farcaster-py)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloperfred%2Fsocial-crosspost-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloperfred%2Fsocial-crosspost-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloperfred%2Fsocial-crosspost-bot/lists"}