Skip to content

cheatsnake/telegram-bot-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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