{"id":50474265,"url":"https://github.com/shnwazdeveloper/sayaspambot","last_synced_at":"2026-06-01T12:02:43.202Z","repository":{"id":356060683,"uuid":"1230850975","full_name":"shnwazdeveloper/sayaspambot","owner":"shnwazdeveloper","description":"Safe opt-in Telegram bot deployable on Railway","archived":false,"fork":false,"pushed_at":"2026-05-06T12:13:31.000Z","size":46,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-06T13:42:31.304Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shnwazdeveloper.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":"2026-05-06T11:36:55.000Z","updated_at":"2026-05-06T12:20:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/shnwazdeveloper/sayaspambot","commit_stats":null,"previous_names":["shnwazdeveloper/sayaspambot"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/shnwazdeveloper/sayaspambot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shnwazdeveloper%2Fsayaspambot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shnwazdeveloper%2Fsayaspambot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shnwazdeveloper%2Fsayaspambot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shnwazdeveloper%2Fsayaspambot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shnwazdeveloper","download_url":"https://codeload.github.com/shnwazdeveloper/sayaspambot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shnwazdeveloper%2Fsayaspambot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33773782,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"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":[],"created_at":"2026-06-01T12:02:41.858Z","updated_at":"2026-06-01T12:02:43.197Z","avatar_url":"https://github.com/shnwazdeveloper.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SayASpamBot\n\nSayASpamBot is a safe, opt-in Telegram bot that can be deployed on Railway.\n\nThis repository was cleaned up from the original spam-bot codebase. Mass spam,\nraid, adult-file spam, hidden invite joins, multi-token blasting, Heroku control\ncode, and hardcoded privileged user IDs have been removed.\n\n## Commands\n\n- `/start` - show the bot intro\n- `/help` - show available commands\n- `/ping` - check bot latency\n- `/id` - show the current user and chat IDs\n- `/gc \u003cnew group name\u003e` - change the current group name\n- `/lineadd \u003ctext\u003e` - privately save one owner-only line\n- `/lineupload` - reply to text or a `.txt` file to save owner-only lines\n- `/linecount` - show saved owner-only line count\n- `/lineclear` - clear saved owner-only lines\n- `/myline` - show one private owner-only saved line\n- `/say \u003cmessage\u003e` - send one user-requested message in the current chat\n\nThe `/say` command is rate-limited and sends only one message per command.\nThe `/gc` command works only in groups, can only be used by group admins, and\nrequires the bot to have permission to change group info.\nThe `/myline` command works only in a private chat with the configured owner.\nIt reads one line from `owner_lines.txt`, which is ignored by git and should be\nused only for non-abusive personal saved text.\nThe `/lineadd`, `/lineupload`, `/linecount`, and `/lineclear` commands also\nwork only in private chat with the configured owner. Uploaded `.txt` files are\nlimited to 64 KB, and one upload saves at most 200 valid lines.\n\n## Required environment variables\n\n- `API_ID` - Telegram API ID from my.telegram.org\n- `API_HASH` - Telegram API hash from my.telegram.org\n- `BOT_TOKEN` - bot token from BotFather\n\nOptional variables:\n\n- `CMD_HNDLR` - command prefix, defaults to `/`\n- `OWNER_ID` - your Telegram numeric user ID\n- `SAY_COOLDOWN_SECONDS` - per-user cooldown for `/say`, defaults to `10`\n- `MAX_SAY_LENGTH` - maximum `/say` message length, defaults to `300`\n- `OWNER_LINES_PATH` - private saved-lines file path, defaults to `owner_lines.txt`\n\n## Run locally\n\n```bash\npython -m venv .venv\nsource .venv/bin/activate\npip install -r requirements.txt\npython -m sayaspambot\n```\n\nOn Windows PowerShell:\n\n```powershell\npython -m venv .venv\n.\\.venv\\Scripts\\Activate.ps1\npip install -r requirements.txt\npython -m sayaspambot\n```\n\n## Deploy on Railway\n\n1. Create a new Railway project from this GitHub repository.\n2. Add `API_ID`, `API_HASH`, and `BOT_TOKEN` in Railway Variables.\n3. Deploy the service.\n\nRailway will use the included Dockerfile and `railway.json` start command.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshnwazdeveloper%2Fsayaspambot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshnwazdeveloper%2Fsayaspambot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshnwazdeveloper%2Fsayaspambot/lists"}