refactor: use MTP API

This commit is contained in:
krau
2024-10-12 12:47:33 +08:00
parent 5ef7c5ce60
commit 5d6b1003e9
13 changed files with 183 additions and 357 deletions

View File

@@ -31,9 +31,11 @@ type dbConfig struct {
}
type telegramConfig struct {
Token string `toml:"token" mapstructure:"token"`
API string `toml:"api" mapstructure:"api"`
Admins []int64 `toml:"admins" mapstructure:"admins"`
Token string `toml:"token" mapstructure:"token"`
AppID int32 `toml:"app_id" mapstructure:"app_id"`
AppHash string `toml:"app_hash" mapstructure:"app_hash"`
API string `toml:"api" mapstructure:"api"`
Admins []int64 `toml:"admins" mapstructure:"admins"`
}
type storageConfig struct {