cheatsnake / telegram-bot-go

A template for a simple telegram bot in pure Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Telegram Bot Go

A minimal implementation of a telegram bot for receiving and sending messages in pure Go. Use this as an initial template for your cool bots.

Usage

  1. Clone this repo
git clone https://github.com/cheatsnake/telegram-bot-go.git
cd ./telegram-bot-go
  1. Build application binary
make build
  1. Run it
./main "paste_your_token_here"

🐳 Docker container startup

  1. Start building proccess:
make docker-build
  1. Running a container with the specified token:
make docker-start BOT_TOKEN="paste_your_token_here"

To stop the container and delete it use:

make docker-stop

About

A template for a simple telegram bot in pure Go


Languages

Language:Go 89.3%Language:Dockerfile 5.7%Language:Makefile 5.0%