Skip to content

Free template to quick startup of new telegram bot. Includes botsrv, orm library based on go-pg, http server, logger, etc

Notifications You must be signed in to change notification settings

kroexov/botsrv-template

Repository files navigation

gold-botsrv template

Run make init first.

  1. Add your bot token and db creds to cfg/local.toml
  2. Use MicroOLAP db designer to generate docs/{name}.pdd and docs/{name}.sql files, or make sql file yourself
  3. Use make mfd commands to generate db structures and repo methods
  4. Add bot commands in RegisterBotHandlers function, place bot business-logic in botsrv package
  • optional: use make run to start bot
  • optional: use make fmt lint before commit to check your code, or add them to your pre-commit hook
  • optional: linters and tests are present in git, use them to check your code past-commit:

img.png

made by kroexov, origin by vmkteam

About

Free template to quick startup of new telegram bot. Includes botsrv, orm library based on go-pg, http server, logger, etc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •