This framework is based on:
- the go-telegram-bot-api library;
- PostgreSQL as database (by using pgx).
- base contains base types like container for request environment or object for sending requests.
- app provides an additional container for the application environment and method for processing the updates.
- server allows you to use a WebHook.
- metrics allows you to publish the
/metrics
endpoint for Prometheus. - storage creates a database connection and runs the migrations located in the
db/migrations
directory. - settings consists of an interface that must provide user settings to the bot.
- wizard provides facilities to create forms with fields of different types.
- logconst is just a set of constants for use in
log.WithField(logconst.*, ...)
.