{"id":16567600,"url":"https://github.com/daboynb/ngrok_telegram_bot","last_synced_at":"2025-10-29T00:31:09.859Z","repository":{"id":103995611,"uuid":"608669109","full_name":"daboynb/ngrok_telegram_Bot","owner":"daboynb","description":"Script that installs ngrok, enables automatic startup with systemd, and uses the Telegram Bot API to send your ngrok server address when it boots or when the internet returns after an outage.","archived":false,"fork":false,"pushed_at":"2024-03-15T10:56:30.000Z","size":14,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-01T20:44:55.660Z","etag":null,"topics":["bash-script","ngrok","server","systemd","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/daboynb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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}},"created_at":"2023-03-02T13:56:16.000Z","updated_at":"2024-12-21T05:21:55.000Z","dependencies_parsed_at":"2024-03-15T11:30:02.550Z","dependency_job_id":"a2fe2502-e314-427a-a338-b87737c91770","html_url":"https://github.com/daboynb/ngrok_telegram_Bot","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/daboynb%2Fngrok_telegram_Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daboynb%2Fngrok_telegram_Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daboynb%2Fngrok_telegram_Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daboynb%2Fngrok_telegram_Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daboynb","download_url":"https://codeload.github.com/daboynb/ngrok_telegram_Bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238744016,"owners_count":19523220,"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":["bash-script","ngrok","server","systemd","telegram-bot"],"created_at":"2024-10-11T21:07:01.455Z","updated_at":"2025-10-29T00:31:04.540Z","avatar_url":"https://github.com/daboynb.png","language":"Shell","funding_links":["https://www.buymeacoffee.com/daboynb"],"categories":[],"sub_categories":[],"readme":"If you wanna help me\n\n\u003ca href=\"https://www.buymeacoffee.com/daboynb\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-orange.png\" alt=\"Buy Me A Coffee\" height=\"41\" width=\"174\"\u003e\u003c/a\u003e\n\n# What is it?\n This script does two things:\n\n1) Installs ngrok and starts it automatically at boot using systemd.\n\n2) Creates a bash script that sends you the updated address of your Raspberry Pi on Ngrok via Telegram every time the Raspberry Pi starts up or after an internet interruption.\n\n# Photo\n![Capture](https://user-images.githubusercontent.com/106079917/222291178-04a6feef-17b6-44f2-bb74-4c11d758f50c.PNG)\n\n# Installation \n\n1) Create an Ngrok account at https://dashboard.ngrok.com/ and save the auth token.\n\n2) Create a Telegram bot with BotFather and save the HTTP API.\n\n3) Create a group, add the bot to the channel, and make it an admin.\n\n4) Open BotFather, type /setjoingroups, and set it to disable.\n\n5) To get the chat ID of the group, type the following in the search bar of your browser:\n\n        https://api.telegram.org/botyourapi/getUpdates\n        \n   The result will be something like this:\n\n        \"my_chat_member\":{\"chat\":{\"id\":-99999999,\"title\":\"raspberry pi\",\"type\":\"group\" \"all_members_are_administrators\":true}\n\n   look at the output, the group name is \"raspberry pi\" and the chat ID is \"99999999\".\n\n6) Now that you have all the required info, run this in the terminal and fill in the required fields:\n\n        wget https://raw.githubusercontent.com/daboynb/ngrok_telegram_Bot/main/install.sh \u0026\u0026 chmod +x install.sh \u0026\u0026 ./install.sh\n\n# Uninstall\n\nTo uninstall ngrok systemd :\n\n    sudo systemctl stop ngrok.service\n    sudo systemctl disable ngrok.service\n    sudo rm /lib/systemd/system/ngrok.service\n    sudo rm -rf /opt/ngrok\n\nTo uninstall the script that uses the Telegram Bot API  :\n\n    sudo systemctl stop bot.service\n    sudo systemctl disable bot.service\n    sudo rm /lib/systemd/system/bot.service\n    sudo rm -rf /opt/bot\n    \nSystemd ngrok based on https://github.com/vincenthsu/systemd-ngrok\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaboynb%2Fngrok_telegram_bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaboynb%2Fngrok_telegram_bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaboynb%2Fngrok_telegram_bot/lists"}