{"id":19315681,"url":"https://github.com/vladpetriv/tg_scanner","last_synced_at":"2026-05-10T16:33:55.586Z","repository":{"id":37088095,"uuid":"464882882","full_name":"VladPetriv/tg_scanner","owner":"VladPetriv","description":"Telegram message scanner","archived":false,"fork":false,"pushed_at":"2023-03-10T18:35:07.000Z","size":334,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-06T03:42:43.770Z","etag":null,"topics":["go","kafka","redis","telegram"],"latest_commit_sha":null,"homepage":"","language":"Go","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/VladPetriv.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":"2022-03-01T12:25:26.000Z","updated_at":"2023-02-28T20:07:28.000Z","dependencies_parsed_at":"2024-06-20T00:03:05.417Z","dependency_job_id":"2519ce33-281d-4d70-891f-656adaedf637","html_url":"https://github.com/VladPetriv/tg_scanner","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/VladPetriv%2Ftg_scanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VladPetriv%2Ftg_scanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VladPetriv%2Ftg_scanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VladPetriv%2Ftg_scanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VladPetriv","download_url":"https://codeload.github.com/VladPetriv/tg_scanner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240417360,"owners_count":19797974,"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":["go","kafka","redis","telegram"],"created_at":"2024-11-10T01:07:55.367Z","updated_at":"2026-05-10T16:33:55.511Z","avatar_url":"https://github.com/VladPetriv.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# tg_scanner\n\ntg_scanner is an application which can parse question and replies from your telegram groups.\n\nApplication will always create a few dirs:\n- images - for saving and getting user, group, message and reply images before save to firebase. (The images will auto remove after saving to the Firebase)\n- data - for saving and getting data from telegram before sent to message queue.\n\n## Tech Stack\n\n**Main:** \n- gotd/td\n- apache kafka \n\n**Store:**\n- redis\n- firebase storage\n\n## Features\n\n- Get groups, user, message reply info from telegram.\n- Save groups, user, replies and messages images into Firebase.\n- Microservice communication with Apache Kafka.\n- Caching messages and groups with Redis.\n- Auto deleting log files after 22 days\n\n\n## Environment Variables\n\nTo run this project, you will need to add the following environment variables to your `config/.config.env` file:\n\n#### Telegram\n- `APP_ID`- Telegram app id\n- `APP_HASH`- Telegram app hash\n- `PHONE` - Your phone number from telegram account\n- `PASSWORD` - Your cloud password to telegram\n\n#### Firebase\n- `PROJECT_ID` - Firebase project id\n- `STORAGE_BUCKET` - Firebase storage bucket\n- `SECRET_PATH` - Path to firebase secret file\n\n#### Logger\n- `LOG_LEVEL` - Level which logger will process\n- `LOG_FILENAME` - Filepath where logger will save logs\n#### Redis\n- `REDIS_ADDR` - Redis address\n- `REDIS_PASSWORD` - Redis password\n\n#### Kafka\n- `KAFKA_ADDR` - Kafka address\n## Run\n\nClone the project\n\n```bash\n  git clone git@github.com:VladPetriv/tg_scanner.git\n```\n\nGo to the project directory\n\n```bash\n  cd tg_scanner\n```\n\nInstall dependencies\n\n```go\n  go mod download\n```\n\nStart the application:\n\nBefore start you must create 2 topic in kafka: `groups` and `messages`\n\n```bash\n  make run \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladpetriv%2Ftg_scanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvladpetriv%2Ftg_scanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladpetriv%2Ftg_scanner/lists"}