A simple telegram bot to get the tunnel info from ngrok.

Overview

Telegram Ngrok Bot

A simple bot to fetch the running tunnels from ngrok api.

Prerequisits

  • Ngrok agent should be running.

Configuration

Ngrok config

version: "2"
authtoken: xxxxxx_xxxx
api_key: xxxxxx_xxxx
# other configurations
# full example -> https://ngrok.com/docs/agent/config/#full-example

Bot Config

token: xxxx:xxxx_x
chat_id: -xxxx # to get the chat ids -> https://api.telegram.org/bot<replace-with-bot-id>/getUpdates
ngrok_api_url: https://api.ngrok.com/tunnels

Development

cargo run -- --config path/to/bot-config-file.yml  --ngrok-config path/to/ngrok-config.yml

Production

telegram_ngrok_bot --config path/to/bot-config-file.yml  --ngrok-config path/to/ngrok-config.yml

Available Commands

Usage: telegram_ngrok_bot --config <FILE> --ngrok-config <FILE>

Options:
  -c, --config <FILE>        Sets a config file
  -n, --ngrok-config <FILE>  Sets a ngrok config file
  -h, --help                 Print help
  -V, --version              Print version

Daemonize the bot with systemctl for linux

telegram_ngrok_bot.service

[Unit]
Description=Telegram ngrok bot to fetch the active tunnels
ConditionFileIsExecutable=<replace-with-path-to>/telegram_ngrok_bot

[Service]
StartLimitInterval=5
StartLimitBurst=10
ExecStart=<replace-with-path-to>/telegram_ngrok_bot "--ngrok-config" "<replace-with-path-to>/ngrok.yml" "--config" "<replace-with-path-to>/telegram_ngrok_bot/bot.yml"


Restart=always
RestartSec=15
[Install]
WantedBy=multi-user.target

Demo

bot

You might also like...
Uradhura is a telegram bot that fetches information and media from reddit
Uradhura is a telegram bot that fetches information and media from reddit

Pathetic little Telegram bot that fetches information from Reddit posts(with gif, image(post with single image) and video)

Autogenerated wrapper for the Telegram Bot API written in Rust.
Autogenerated wrapper for the Telegram Bot API written in Rust.

An Elegant Rust Client for Telegram Bot API crates.io • docs.rs Table of contents Introduction Key Features Installation Getting Started Documentation

A Telegram bot to watch animes

AmimeWatch A Telegram bot to watch animes. Re-written version of AmimeWatch in Rust. Preparing Configuration Create a file named config.toml and fill

An out-of-box ChatGPT bot for Telegram.
An out-of-box ChatGPT bot for Telegram.

TeleGPT API Docs | Releases | Twitter An out-of-box ChatGPT bot for Telegram. TeleGPT is a Telegram bot based on teloxide framework and async_openai.

An out-of-box ChatGPT bot for Telegram.
An out-of-box ChatGPT bot for Telegram.

TeleGPT API Docs | Releases | Twitter An out-of-box ChatGPT bot for Telegram. TeleGPT is a Telegram bot based on teloxide framework and async_openai.

A Telegram bot written in Rust.

Knight-Bot Table of Contents About Support chat Installation Setting up your environment Build manually Commands Commands on TODO list Find this bot A

A Telegram ChatGPT bot
A Telegram ChatGPT bot

A customizable Telegram bot with a ChatGPT (or GPT4, bring your own API key) backend. You can configure the bot’s context and prompt in template settings.

A Rust Based GMod Module for finding system info.

gm_sysinfo Fetching System Information in Rust to Lua. Installation Download the Module. Compile it. Cry because it doesn't work. Spend 2 hours debugg

Matrix bot inspired by Shirt Bot.

matrix-openai-bot Matrix bot inspired by Shirt Bot. Usage Run the bot after building it or grabbing the latest release $ matrix-openai-bot Edit the ge

Owner
Ishan Dongol
Sajilo Recharge | M.Tech. in AI | React.js | Rust | Flutter | Node.js
Ishan Dongol
Telegram bot to fetch images from Terceira Ponte and Rodosol into your Telegram chat.

rodosol-telegram-bot Add this bot to your contacts list This bot is a quick scraper that gets the pictures from the rodosol "De olho na via" feature a

Armando Magalhães 1 Jan 9, 2022
Telegram bot help you to run Rust code in Telegram via Rust playground

RPG_BOT (Rust Playground Bot) Telegram bot help you to run Rust code in Telegram via Rust playground Bot interface The bot supports 3 straightforward

TheAwiteb 8 Dec 6, 2022
This is a simple Telegram bot with interface to Firefly III to process and store simple transactions.

Firefly Telegram Bot Fireflies are free, so beautiful. (Les lucioles sont libres, donc belles.) ― Charles de Leusse, Les Contes de la nuit This is a s

null 13 Dec 14, 2022
A Simple, But amazing telegram bot, Made using the Rust language!

Telegram bot in Rust A fun Telegram bot made using Rust language.

Deep Alchemy 2 Dec 21, 2021
A simple Telegram bot that eats anonymous channel messages, written in Rust.

tgbot-nochanmsg By Asuna Right Control When creating your bot from botfather, it's not bad to disable privacy mode, because it needs to access the mes

h3a.moe 2 Aug 5, 2022
This is a Telegram bot I'm working on in my free time to learn Rust.

Maldness Bot This is a Telegram bot I'm working on in my free time to learn Rust. Building docker build -t . should be enough.

Sergey Kislyakov 10 May 13, 2022
Telegram Bot Template with Cloudflare Workers

cf-workers-telegram-bot-template Usage This template starts you off with a src/lib.rs file, acting as an entrypoint for requests hitting your Worker.

Lee Taehoon 2 Sep 23, 2021
Rust telegram bot library for many runtimes

Telbot Telbot provides telegram bot types and api wrappers. Specifically, telbot now supports: telbot-types: basic telegram types / requests / respons

kiwiyou 17 Dec 3, 2022
Telegram bot that zhuzh Twitter content

@twt_2_tg_bot Telegram bot that zhuzh shared Twitter content Text converter Some tweets may contain line breaks or even dialogs. Such tweets are barel

Vladimir 6 Nov 6, 2022
Telegram bot for searching in Arch User Repository ( AUR ); Implemented using rust.

AurSearchBot A Telegram Inline Search Bot Written in Rust Introduction Telegram Bot that can search AUR ( Arch User Repository ) in inline mode. This

AlenPaulVarghese 3 Feb 15, 2022