{"id":21031981,"url":"https://github.com/navid2zp/hcloud-tg","last_synced_at":"2025-07-25T21:41:17.808Z","repository":{"id":118870491,"uuid":"324560115","full_name":"Navid2zp/hcloud-tg","owner":"Navid2zp","description":"Telegram bot for managing Hetzner cloud servers.","archived":false,"fork":false,"pushed_at":"2021-03-30T15:51:09.000Z","size":60,"stargazers_count":42,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T09:12:20.616Z","etag":null,"topics":["cloud","hcloud-tg","hetzner","hetzner-api","hetzner-cloud","hetzner-cloud-servers","telegram-bot"],"latest_commit_sha":null,"homepage":"","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/Navid2zp.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":"2020-12-26T13:23:33.000Z","updated_at":"2025-03-15T11:00:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"782cf0e7-aac8-45f4-aa94-9e03f4b1bde0","html_url":"https://github.com/Navid2zp/hcloud-tg","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/Navid2zp%2Fhcloud-tg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Navid2zp%2Fhcloud-tg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Navid2zp%2Fhcloud-tg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Navid2zp%2Fhcloud-tg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Navid2zp","download_url":"https://codeload.github.com/Navid2zp/hcloud-tg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254341131,"owners_count":22054984,"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":["cloud","hcloud-tg","hetzner","hetzner-api","hetzner-cloud","hetzner-cloud-servers","telegram-bot"],"created_at":"2024-11-19T12:39:27.459Z","updated_at":"2025-05-15T12:31:26.564Z","avatar_url":"https://github.com/Navid2zp.png","language":"Python","funding_links":[],"categories":["Integrations"],"sub_categories":["Rust"],"readme":"# hcloud-tg\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg alt=\"License\" src=\"https://img.shields.io/github/license/Navid2zp/hcloud-tg?style=flat-square\" /\u003e\n\t\u003cimg alt=\"Docker size\" src=\"https://img.shields.io/docker/image-size/navid2zp/hcloud-tg?style=flat-square\" /\u003e\n\t\u003cimg alt=\"Docker build\" src=\"https://img.shields.io/docker/cloud/build/navid2zp/hcloud-tg?style=flat-square\" /\u003e\n\t\u003cimg alt=\"Docker build\" src=\"https://img.shields.io/docker/cloud/automated/navid2zp/hcloud-tg?style=flat-square\" /\u003e\n\t\u003cimg alt=\"Docker pulls\" src=\"https://img.shields.io/docker/pulls/navid2zp/hcloud-tg?style=flat-square\" /\u003e\n\u003c/p\u003e\n\nTelegram bot for managing Hetzner cloud servers.\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg alt=\"dups\" src=\"https://raw.githubusercontent.com/Navid2zp/hcloud-tg/main/Screenshot.png\" /\u003e\n\u003c/p\u003e\n\n\n## Running\n\nhcloud-tg requires some environment variables to work.\n\n`BOT_TOKEN`: \nYour bot token which you got from @BotFather.\n\n`ALLOWED_USERS`: \nA list of users telegram id that are allowed to use the bot. IDs should be separated using '-' (12345678-3215477). You can either get your id by messaging `@get_id_bot` bot or you can run the bot without any allowed users and send `/me` command to get a reply containing your telegram id.\n\n`HETZNER_API_KEY`:\nAn API key generated from Hetzner cloud console. Note that only servers that are in the API project will be available to manage.\n\n### Docker:\n\n**Using `docker run`:**\n\n```\ndocker run -e BOT_TOKEN=\u003cBOT_TOKEN\u003e -e ALLOWED_USERS=\u003cALLOWED_USERS\u003e -e HETZNER_API_KEY=\u003cHETZNER_CLOUD_API\u003e navid2zp/hcloud-tg\n```\n\n**Using `docker-compose`:**\n\ncreate a `docker-compose.yml` file:\n\n```\nversion: \"3.9\"\n\nservices:\n  hcloud-tg:\n    container_name: hcloud-tgbot\n    image: navid2zp/hcloud-tg\n    env_file: ./env.list\n    restart: always\n```\n\ncreate a file containing environment variables named `env.list` next to `docker-compose.yml`:\n\n```\nBOT_TOKEN=\u003cYOUR_BOT_TOKEN\u003e\nALLOWED_USERS=\u003cALLOWED_USERS\u003e\nHETZNER_API_KEY=\u003cYOUR_HETZNER_API_KEY\u003e\n```\nand then run: `docker-compose up`\n\n### Python:\n\nAdd the required environment variables and then:\n\n```\ngit clone https://github.com/Navid2zp/hcloud-tg.git\ncd hcloud-tg\npip install -r requirements.txt\npython bot.py\n```\n\n## Supported actions\n\n- reset\n- reboot\n- shutdown\n- power on\n- power off\n- root password reset\n\n## Docker hub\n\nhttps://hub.docker.com/r/navid2zp/hcloud-tg\n\n\nLicense\n----\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavid2zp%2Fhcloud-tg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnavid2zp%2Fhcloud-tg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavid2zp%2Fhcloud-tg/lists"}