Skip to content

kozalosev/goSadTgBot

Repository files navigation

goSadTgBot — SadBot's Framework for development of Telegram bots

CI Build

This framework is based on:

Packages

  • 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.*, ...).

Examples of usage