Example bot template for Telegram.
With this type of setup all you need to do is:
git clone
itmake init
to set up the project and its dependencies.env
file for your needs.service
file for systemd to manage your botThis bot uses:
This project mostly adheres to the Project Layout structure, excluding pkg
folders.
internal
package holds the private libraries:
config
for configurationbolt
for database (using BoltDB)file
for file and network helperstelegram
package with bot implementationTo add another custom command handler, you can:
.env
file (and also a corresponding message, if required)internal
packages