Boilerplate code for writing a telegram bot using gotgbot library
IGNORE THIS REPO PLEASE!!!
- This is just a boilerplate code to make a bot with gotgbot library.
- It's not meant to be deployed as is, i created this just so i don't have to start from scratch everytime when i want to write a new bot.
- By default, it only has one MessageHandler, for /start command, replies with bot's uptime.
- Bot token can either be passed via Environmental variable,
TOKEN
or via the first argument while running the bot. - To create new modules, just create a new go file in modules/ folder and then add appropriate handlers in main.go
$ git clone https://github.com/TheHamkerCat/goBotBoilerplate
$ go build .
$ ./goBotBoilerplate {botToken}
or run without any args if you've exported ENV vars