TelegramBot

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2021 License: MIT

README

My first GoLang project

Project Aim

The goal of this project is to develop the most simple golang bot to learn how to work with this programming language.

This is a purely educational project

Deployment

All you need to get this project up and running right now is to build it, fill in the environment variables and run it.

Enviroment

Some environment variables are used to set up this project

Variable Type Example
BOT_TOKEN string 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
Run via docker-compose

Create copy of .env.example file with .env name and put your enviroment variables there. Then build and run containter by command

docker-compose up -d

Support project

You can support me by subscribing to my telegram channel @forzend. Updates and my train of thought will be posted there.

Directories

Path Synopsis
cmd
bot
internal
app
pkg
telegram/bot
This is the main structure around which the entire project is built.
This is the main structure around which the entire project is built.
telegram/logger
package logger provides logger interface, witch is required to initialize the bot
package logger provides logger interface, witch is required to initialize the bot
telegram/types
package types provides structures describing telegram bot api types https://core.telegram.org/bots/api#available-types
package types provides structures describing telegram bot api types https://core.telegram.org/bots/api#available-types

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL