{"id":16753510,"url":"https://github.com/optimalstrategy/sms_forwarder_bot","last_synced_at":"2026-03-17T18:36:33.179Z","repository":{"id":46856987,"uuid":"156308870","full_name":"optimalstrategy/sms_forwarder_bot","owner":"optimalstrategy","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-17T03:53:27.000Z","size":140,"stargazers_count":5,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-20T08:05:04.656Z","etag":null,"topics":["django","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/optimalstrategy.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":"2018-11-06T01:38:45.000Z","updated_at":"2025-01-17T03:53:29.000Z","dependencies_parsed_at":"2025-01-17T04:20:45.112Z","dependency_job_id":"49d74371-35fa-4902-9a70-61bf3693e1a9","html_url":"https://github.com/optimalstrategy/sms_forwarder_bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/optimalstrategy/sms_forwarder_bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optimalstrategy%2Fsms_forwarder_bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optimalstrategy%2Fsms_forwarder_bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optimalstrategy%2Fsms_forwarder_bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optimalstrategy%2Fsms_forwarder_bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/optimalstrategy","download_url":"https://codeload.github.com/optimalstrategy/sms_forwarder_bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optimalstrategy%2Fsms_forwarder_bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30628419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["django","telegram","telegram-bot"],"created_at":"2024-10-13T02:50:19.061Z","updated_at":"2026-03-17T18:36:33.161Z","avatar_url":"https://github.com/optimalstrategy.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SMS forwarder bot\nA bot/broker that forwards SMS messages to telegram. Intended to work with the [app](https://github.com/optimalstrategy/sms_forwarder_app).\n\u003cbr\u003eThe deployed bot is running at https://forwarder.whatever.team and is accessible via https://t.me/smsforwarderrobot.\n\n## Development\n1. Copy `.env.example` and add your telegram token. If you don't want to set up a webhook with something like ngrok, set `FWD_LONG_POLLING` to `true`.\n2. Spin up a postgres container with the command below.\n\n```bash\n$ docker-compose -f docker-compose-dev.yml up -d\n```\n\n3. Run the app with with `just dev` or `cargo run` (you have to manually set the env variables).\n\n## Production\n1. Copy `.env.example` and add your telegram token and database password. Set `DB_HOST=db`. Set `FWD_USE_LONG_POLLING=false` to use webhooks. Note that you _can_ use long polling in production if you want, but it's not recommended.\n2. If you care about rate limiting, set `FWD_IP_SOURCE` to an appropriate value for your hosting service instead of the default `ConnectInfo`. For example, if you use an exposed nginx, you can set it to `X-Real-IP` after binding `X-Real-IP` to `$remote_addr` in the nginx config.\n3. Run docker-compose to build and start the app:\n\n```bash\n$ docker-compose -f docker-compose.yml up -d\n```\n\nThe container will be exposed at `127.0.0.1:6336` by default.\n\n\n## Python Implementation\nArchived in the [`python`](https://github.com/optimalstrategy/sms_forwarder_bot/tree/python) branch. Migrating an existing deployment to rust should be seamless, just correctly convert `configs/production.env` to `.env`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptimalstrategy%2Fsms_forwarder_bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foptimalstrategy%2Fsms_forwarder_bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptimalstrategy%2Fsms_forwarder_bot/lists"}