{"id":13640113,"url":"https://github.com/MasterGroosha/my-id-bot","last_synced_at":"2025-04-20T02:32:44.338Z","repository":{"id":38010356,"uuid":"222790848","full_name":"MasterGroosha/my-id-bot","owner":"MasterGroosha","description":"Telegram bot to get ID of some chats (including your own ID)","archived":false,"fork":false,"pushed_at":"2024-08-18T11:51:16.000Z","size":67,"stargazers_count":122,"open_issues_count":1,"forks_count":42,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-08-18T12:57:34.047Z","etag":null,"topics":["aiogram","aiogram3","docker","docker-compose","python","systemd","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"https://t.me/my_id_bot","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/MasterGroosha.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":"2019-11-19T21:13:44.000Z","updated_at":"2024-08-18T11:50:43.000Z","dependencies_parsed_at":"2024-01-14T12:08:03.107Z","dependency_job_id":"9772f335-1187-49b8-af0d-0f92f313d816","html_url":"https://github.com/MasterGroosha/my-id-bot","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasterGroosha%2Fmy-id-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasterGroosha%2Fmy-id-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasterGroosha%2Fmy-id-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MasterGroosha%2Fmy-id-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MasterGroosha","download_url":"https://codeload.github.com/MasterGroosha/my-id-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223816406,"owners_count":17207854,"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":["aiogram","aiogram3","docker","docker-compose","python","systemd","telegram","telegram-bot"],"created_at":"2024-08-02T01:01:07.830Z","updated_at":"2025-04-20T02:32:44.321Z","avatar_url":"https://github.com/MasterGroosha.png","language":"Python","funding_links":[],"categories":["Bots","Python"],"sub_categories":[],"readme":"# Bot to get users/chats IDs in Telegram\n\n\u003ca href=\"https://hub.docker.com/r/groosha/my-id-bot\"\u003e\u003cimg src=\"https://img.shields.io/badge/my--id--bot-docker%20hub-blue\"\u003e\u003c/a\u003e\n\u003ca href=\"https://t.me/my_id_bot\"\u003e\u003cimg src=\"https://img.shields.io/badge/Telegram-@my__id__bot-0c5161\"\u003e\u003c/a\u003e   \nGive it a try: [@my_id_bot](https://t.me/my_id_bot).  \n\nThis is a simple bot written with [aiogram 3.x](https://github.com/aiogram/aiogram) framework to show some IDs, like:\n\n* Your user ID (when asked in inline mode or in private chat with any message);  \n* Group/supergroup ID (when added to that group or with /id command);  \n* Channel ID (when message forwarded from channel to one-to-one chat with bot);  \n* Supergroup ID (when message forwarded from anonymous group admin);  \n* Topic ID for [forum supergroups](https://telegram.org/blog/topics-in-groups-collectible-usernames#topics-in-groups);  \n* Sticker ID (they can be re-used with any bot);\n* Group to supergroup migrate information (both old and new ID).\n\n## Requirements:\n* Python 3.11 and newer;  \n* Linux (should work on Windows, but not tested);   \n* Systemd init system (optional).  \n* Docker (optional).\n\n## Installation:\n\n### Just to test (not recommended)\n1. Clone this repo;\n2. `cd` to cloned directory and initialize Python virtual environment (venv);\n3. Activate the venv and install all dependencies from `requirements.txt` file;\n4. Copy `env_example` to `.env` (with the leading dot), open `.env` and edit the variables;\n5. In the activated venv: `python -m bot`\n\n### Systemd \n1. Perform steps 1-4 from \"just to test\" option above;\n2. Copy `my-id-bot.example.service` to `my-id-bot.service` (or whatever your prefer), open it and edit `WorkingDirectory` \nand `ExecStart` directives;\n3. Copy (or symlink) that service file to `/etc/systemd/system/` directory;\n4. Enable your service `sudo systemctl enable my-id-bot --now`;\n5. Check that service is running: `systemctcl status my-id-bot` (can be used without root privileges).\n\n### Docker + Docker Compose\n1. Get `docker-compose.example.yml` file and rename it as `docker-compose.yml`;\n2. Get `env_example` file, rename it as `.env` (with the leading dot), open it and edit the variables;\n3. Run the bot: `docker compose up -d`;\n4. Check that container is up and running: `docker compose ps`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMasterGroosha%2Fmy-id-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMasterGroosha%2Fmy-id-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMasterGroosha%2Fmy-id-bot/lists"}