Hi, here you will find Telegram Bot code in GO language from the Prometheus_2week_2module_5task journey.
Name of created bot is t.me/juniour_bot_bot
How to build and run:
Prerequisites:
Golang should be installed
Bot token should be assigned to system env variable with name TELE_TOKEN like
read -s TELE_TOKEN
and export like
export TELE_TOKEN
API Token can be provided by request.
BUILD:
use command go build -ldflags "-X="github.com/Prometheus_2week_2module_5task/cmd.appVersion=v1.0.2
RUN:
use command ./Prometheus_2week_2module_5task start
Thanks for your attention.