easy-peasy wg tg bot

Overview

wireguard-telegram-bot

It was supposed to be a cool logo here

Simple-Dimple Telegram Bot for Wireguard VPN config generation

Functionality

  • /menu — list available commands
  • /newkeys — create a new config file and qr code for new generated key pair
  • /pubkey — create a new config file template for the public key you provided
  • /help — print this message

Public Wireguard Telegram Bot

Just drop a message to @wrgrdtgbot and ask him for some new config for you and your friends
Install Wireguard client for your device and import generated file or scan qr code

bot screen 1 bot screen 2

bot screen 3 bot screen 4

Disclaimer: stability, availability and security are not guaranteed! Sorry not sorry 👉🏻👈🏻

Setup your own Wireguard Telegram Bot

  • Go to @BotFather, send him /newbot, choose a bot's name and username, and receive Telegram Bot API Token

  • Go to AWS, GCP, whatever ☁️ and setup your remote server in desired region

    • You need to open corresponding port (e.g. udp:51820)
  • Install go, wireguard and wireguard-tools on your server

    • Someday, we hope there will be a handy Dockerfile for it 🐳
  • Generate Wireguard key pair for your server, create appropriate config file (e.g. wg0.conf) and run Wireguard

    • You're all big boys, you'll handle it
  • git clone [email protected]:skoret/wireguard-telegram-bot.git

  • cd wireguard-telegram-bot && cp .env.example .env

  • Set env variables in .env file:

    Variable Content Notes
    TELEGRAM_APITOKEN your Telegram Bot API token from @BotFather keep it in secret!
    ADMIN_USERNAMES list of Telegram usernames, separated by commas, who are allowed to access this bot leave variable empty for public access
    DNS_IPS list of DNS ip addresses, separated by commas e.g. 8.8.8.8,8.8.4.4
    SERVER_ENDPOINT <your_machine's_external_ip:open_port>
    WIREGUARD_INTERFACE new Wireguard interface name e.g. wg0
    TEMPLATES_FOLDER path to configuration template files probably, you don't wanna change it
    DEV_MODE false for common uses
    true for mocked internal wireguard client
    dev mode suitable for manual bot ui tests
  • sudo go run cmd/bot/main.go

  • 🎉 🍻 🥳


We hope the bot will be helpful. The code is not of the best quality. Contributions are welcome!


Acknowledgements

Telegram Bot Framework for Go

Margelet Telegram Bot Framework for Go is based on telegram-bot-api It uses Redis to store it's states, configs and so on. Any low-level interactions

Gleb Sinyavskiy 63 Jul 27, 2021
easy-peasy wg tg bot

wireguard-telegram-bot Simple-Dimple Telegram Bot for Wireguard VPN config generation Functionality /menu — list available commands /newkeys — create

Sergey Skaredov 12 Jun 7, 2021
Flexible message router add-on for go-telegram-bot-api library.

telemux Flexible message router add-on for go-telegram-bot-api library. Table of contents Motivation Features Minimal example Documentation Changelog

Andrew Dunai 15 Aug 20, 2021
Chatto is a minimal chatbot framework in Go.

chatto Simple chatbot framework written in Go, with configurations in YAML. The aim of this project is to create very simple text-based chatbots using

Jaime Tenorio 89 Sep 5, 2021
Golang bindings for the Telegram Bot API

Golang bindings for the Telegram Bot API All methods are fairly self explanatory, and reading the godoc page should explain everything. If something i

null 3.1k Sep 11, 2021
Signum Explorer Telegram Bot - it's a simplified version of the web Signum Explorer

Signum Explorer Telegram Bot - it's a simplified version of the web Signum Explorer. Bot allows you to easily monitor the status of your account and to receive notifications about new transactions and blocks.

Anatoliy Bezgubenko 26 Sep 13, 2021
Kelp is a free and open-source trading bot for the Stellar DEX and 100+ centralized exchanges

Kelp Kelp is a free and open-source trading bot for the Stellar universal marketplace and for centralized exchanges such as Binance, Kraken, CoinbaseP

Stellar 747 Sep 15, 2021
A golang implementation of a console-based trading bot for cryptocurrency exchanges

Golang Crypto Trading Bot A golang implementation of a console-based trading bot for cryptocurrency exchanges. Usage Download a release or directly bu

Alessandro Sanino 595 Sep 11, 2021
A tip bot and Lightning wallet on Telegram ⚡️

@LightningTipBot ?? A Telegram Lightning ⚡️ Bitcoin wallet and tip bot for group chats. This repository contains everything you need to set up and run

null 9 Sep 8, 2021
Bot that polls activity API for Github organisation and pushes updates to Telegram.

git-telegram-bot Telegram bot for notifying org events Requirements (for building) Go version 1.16.x Setup If you don't have a telegram bot token yet,

Skycoin 3 May 13, 2021
A bot that greets new members on telegram groups with a cute, personalised gif.

Telegram-senko-bot About The Bot This bot greets new members on telegram groups with a cute, personalised gif with Senko-san. In case you're wondering

4kaze 4 Aug 25, 2021
Telebot is a Telegram bot framework in Go.

Telebot "I never knew creating Telegram bots could be so sexy!" go get -u gopkg.in/tucnak/telebot.v2 Overview Getting Started Poller Commands Files Se

Ian P Badtrousers 2.1k Sep 12, 2021
A general-purpose bot library inspired by Hubot but written in Go. :robot:

Joe Bot ?? A general-purpose bot library inspired by Hubot but written in Go. Joe is a library used to write chat bots in the Go programming language.

Joe Bot 428 Aug 12, 2021
Instagram to Telegram Channel Bot.

InstaTG Instagram to Telegram Channel Bot. Can access posts from any public Instagram account or an account that you follow. Features Keeps track of e

Anchit Bajaj 3 Jul 23, 2021
A lightweight, universal cloud drive upload tool for all platforms

简体中文 LightUploader MoeClub wrote a very good version, but unfortunately it's not open source and hasn't been updated in a while. This project is a sim

高玩梁 192 Sep 10, 2021
The modern cryptocurrency trading bot written in Go.

bbgo A trading bot framework written in Go. The name bbgo comes from the BB8 bot in the Star Wars movie. aka Buy BitCoin Go! Current Status Features E

Yo-An Lin 346 Sep 6, 2021
A telegram bot that fetches multiple RSS cryptocurrency news feeds for sentiment analysis

Crypto News Telegram Bot A simple telegram bot that will help you stay updated on your latest crypto news This bot will help you keep track of the lat

Cha 4 Aug 22, 2021
Golang Implementation of RLBot

RLBotGo This repository holds a library for making Rocket League bots in Go! It provides: An easy to use interface for writing bots An example bot usi

Trey Moller 4 Jul 30, 2021
Simple yet customizable bot framework written in Go.

Introduction Sarah is a general-purpose bot framework named after the author's firstborn daughter. This comes with a unique feature called "stateful c

Go Hagiwara 200 Sep 1, 2021