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

Slack Bot Framework

slacker Built on top of the Slack API github.com/slack-go/slack with the idea to simplify the Real-Time Messaging feature to easily create Slack Bots,

Raed Shomali 517 Jun 7, 2021
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 Apr 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
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 2.9k Jun 12, 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 683 Jun 12, 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 560 Jun 11, 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
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 1.9k Jun 13, 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 422 Jun 2, 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

高玩梁 172 Jun 11, 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 315 Jun 11, 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 May 11, 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 194 Jun 12, 2021
A cowin bot that gives you an update whenever it finds a vacancy in your region

go-cowin-bot A cowin bot that will give you an update on discord whenever it finds a vacancy for the parameters provided Setup: download go-cowin-bot

Varun Sapre 4 May 24, 2021