{"id":21459758,"url":"https://github.com/stepanzubkov/tg-username-clock","last_synced_at":"2026-06-28T19:31:42.684Z","repository":{"id":110685499,"uuid":"584078662","full_name":"stepanzubkov/tg-username-clock","owner":"stepanzubkov","description":"Shows current time in telegram username","archived":false,"fork":false,"pushed_at":"2023-01-03T20:06:58.000Z","size":9,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-27T17:49:29.547Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stepanzubkov.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":"2023-01-01T08:43:44.000Z","updated_at":"2025-06-09T03:51:13.000Z","dependencies_parsed_at":"2023-05-28T02:00:31.692Z","dependency_job_id":null,"html_url":"https://github.com/stepanzubkov/tg-username-clock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stepanzubkov/tg-username-clock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepanzubkov%2Ftg-username-clock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepanzubkov%2Ftg-username-clock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepanzubkov%2Ftg-username-clock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepanzubkov%2Ftg-username-clock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stepanzubkov","download_url":"https://codeload.github.com/stepanzubkov/tg-username-clock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepanzubkov%2Ftg-username-clock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34901959,"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-28T02:00:05.809Z","response_time":54,"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":"2024-11-23T06:31:48.340Z","updated_at":"2026-06-28T19:31:42.665Z","avatar_url":"https://github.com/stepanzubkov.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tg-username-clock\nSimple script that sets Telegram user's `last_name` as clock every minute. It uses `apscheduler` as scheduler and `telethon` as Telegram client.\n\n**Examples**\n\n\"Stepan Zubkov\" =\u003e \"Stepan Zubkov \u003c15:23\u003e\"\n\n(`last_name` is empty)\n\n![Screenshot_20230103_205958](https://user-images.githubusercontent.com/83695097/210414779-5840d8f8-4469-40e4-8cdd-da2dcf4a2db3.png)\n\n## Installation\nAt first, go to https://my.telegram.org/ and fill out a form. In this script only `api_id` and `api_hash` params are used.\n\n### Docker (preffered way)\n\nClone this repo and go to `/src` directory.\nCreate `.app.env` file here. Put your `api_id` and `api_hash` in file:\n\n```bash\nAPI_ID=\u003cyour api_id\u003e\nAPI_HASH=\u003cyour api_hash\u003e\n```\n\n\nBuild image:\n\n```bash\ndocker build . -t tg-username-clock\n```\n\nRun container:\n```bash\ndocker run --env-file=.app.env -v /etc/localtime:/etc/localtime:ro tg-username-clock\n```\n\nOn Windows, create file with your timezone. See [all timezones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). Then, run:\n```bash\ndocker run --env-file=.app.env -v c:/path/to/your/timezone/file:/etc/timezone:ro tg-username-clock\n```\n\n### Python\n#### Linux\nCreate virtual environment and activate it:\n\n```bash\ncd src/\npython3 -m venv venv\nsource venv/bin/activate\n```\n\nSet environment variables with your credentials:\n\n```bash\nexport API_ID=\u003cyour api_id\u003e\nexport API_HASH=\u003cyour api_hash\u003e\n```\n\n\nRun app:\n```bash\npython main.py\n```\n\n#### Windows\n\nCreate and activate virtual environment:\n```cmd\ncd src/\npython -m venv venv\nvenv\\Scripts\\activate.bat\n```\n\nSet environment variables with your credentials:\n\n```cmd\nset API_ID=\u003cyour api_id\u003e\nset API_HASH=\u003cyour api_hash\u003e\n```\n\nRun app:\n```bash\npython main.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepanzubkov%2Ftg-username-clock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstepanzubkov%2Ftg-username-clock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepanzubkov%2Ftg-username-clock/lists"}