{"id":35201758,"url":"https://github.com/danpasecinic/telegram-whatsapp-bridge","last_synced_at":"2026-04-17T03:03:51.337Z","repository":{"id":330488826,"uuid":"1122390588","full_name":"danpasecinic/telegram-whatsapp-bridge","owner":"danpasecinic","description":"Forward posts from Telegram channels to WhatsApp (group or channel). Supports text, photos, documents, video, and audio.","archived":false,"fork":false,"pushed_at":"2026-02-28T19:12:31.000Z","size":129,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-28T20:07:01.695Z","etag":null,"topics":["js","message-bridge","telegram","whatsapp"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/danpasecinic.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-24T16:16:56.000Z","updated_at":"2026-02-28T19:12:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/danpasecinic/telegram-whatsapp-bridge","commit_stats":null,"previous_names":["danpasecinic/telegram-whatsapp-bridge"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danpasecinic/telegram-whatsapp-bridge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danpasecinic%2Ftelegram-whatsapp-bridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danpasecinic%2Ftelegram-whatsapp-bridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danpasecinic%2Ftelegram-whatsapp-bridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danpasecinic%2Ftelegram-whatsapp-bridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danpasecinic","download_url":"https://codeload.github.com/danpasecinic/telegram-whatsapp-bridge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danpasecinic%2Ftelegram-whatsapp-bridge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31913078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["js","message-bridge","telegram","whatsapp"],"created_at":"2025-12-29T11:55:35.954Z","updated_at":"2026-04-17T03:03:51.332Z","avatar_url":"https://github.com/danpasecinic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram → WhatsApp Bridge\n\nForward posts from Telegram channels to WhatsApp (group or channel). Supports text, photos, videos, documents, and\naudio. Automatically skips reposts/forwards from other channels.\n\n## Setup\n\n1. **Install dependencies**\n   ```bash\n   npm install\n   ```\n\n2. **Configure environment**\n   ```bash\n   cp .env.example .env\n   ```\n\n3. **Get Telegram Bot Token**\n    - Message [@BotFather](https://t.me/BotFather) → `/newbot`\n    - Add bot as admin to your Telegram channel\n    - Copy token to `.env`\n\n4. **Run the bridge**\n   ```bash\n   npm start\n   ```\n\n5. **Connect WhatsApp**\n    - Scan QR code with WhatsApp\n    - Copy desired chat ID from console to `.env`\n    - Restart\n\n## Docker\n\n```bash\n# Build and run\ndocker compose up -d\n\n# View logs\ndocker compose logs -f\n\n# First run - get QR code\ndocker compose logs -f bridge\n```\n\nSession and logs persist in `./data/` directory.\n\n## CI/CD\n\nPushing to `main` triggers automatic deployment to EC2 via GitHub Actions.\n\n**Required GitHub Secrets:**\n\n| Secret       | Description                          |\n|--------------|--------------------------------------|\n| `EC2_HOST`   | EC2 instance IP or hostname          |\n| `EC2_SSH_KEY` | Private SSH key for `ec2-user` access |\n\n## Environment Variables\n\n| Variable              | Description                                                                 |\n|-----------------------|-----------------------------------------------------------------------------|\n| `TELEGRAM_BOT_TOKEN`  | Bot token from @BotFather                                                   |\n| `TELEGRAM_CHANNEL_ID` | Channel ID to monitor (optional, monitors all if empty)                     |\n| `WHATSAPP_CHAT_ID`    | Target WhatsApp chat (`123@g.us` for groups, `123@newsletter` for channels) |\n| `LOG_DIR`             | Log directory (default: `./logs`)                                           |\n| `DATA_DIR`            | Data directory for WhatsApp session (default: `.`)                          |\n| `DEBUG`               | Enable debug logging (set to `1`)                                           |\n\n## Notes\n\n- For WhatsApp Channels, your account must be an admin\n- Session persists in `.wwebjs_auth/` folder\n- Large files may fail due to Telegram API limits (20MB for bots)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanpasecinic%2Ftelegram-whatsapp-bridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanpasecinic%2Ftelegram-whatsapp-bridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanpasecinic%2Ftelegram-whatsapp-bridge/lists"}