Categorygithub.com/HeadHunter483/go-tg-bot
module
0.0.0-20220507231514-5df54f0e912b
Repository: https://github.com/headhunter483/go-tg-bot.git
Documentation: pkg.go.dev

# README

Simple Go Telegram Bot

Example of Telegram Bot written in Go programming language. There is base implementation of go-telegram-bot-api with usage of postgresql database and API calls to external resource.

To run the bot there must be specified .env file as shown in .env-example, there must exist a postgresql database and applied migrations for it. Migrations are applied using custom goose binary. It has to be built from goose/main.go entrypoint:

$ go build -o bin/goose goose/main.go
$ bin/goose up # running db migrations to the latest version

The bot can be manually launched from server/main.go file:

$ go run server/main.go

or from manually built binary:

$ go build -o bin/server server/main.go
$ bin/server

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author