implement telegram bot

This commit is contained in:
yash 2026-02-26 00:36:31 +03:00
parent 608561ab38
commit bec3b7de5b
5 changed files with 613 additions and 6 deletions

View file

@ -10,11 +10,16 @@ import (
type Config struct {
Logger Logger `yaml:"logger"`
Postgresql Postgresql `yaml:"postgresql"`
Telegram Telegram `yaml:"telegram"`
Providers struct {
Bybit Bybit `yaml:"bybit"`
} `yaml:"providers"`
}
type Telegram struct {
Token string `yaml:"token" env-required:"true"`
}
type Logger struct {
ServiceName string `yaml:"service_name" env-required:"true"` // service name for printing in logs
Encoding string `yaml:"encoding" env-default:"json"` // console/json