1

Update dependencies

This commit is contained in:
2019-02-12 03:06:00 +04:00
parent 3c9390a295
commit 89a4edb13f
11 changed files with 13 additions and 19 deletions

View File

@@ -0,0 +1,9 @@
// Fantasy World Zookeeper Helper Bot
// Copyright (c) 2018 Vladimir "fat0troll" Hodakov
package config
// Announce is a struch which handles announces configuration
type Announce struct {
ChannelID int64 `yaml:"channel_id"`
}

11
internal/config/struct.go Normal file
View File

@@ -0,0 +1,11 @@
// Fantasy World Zookeeper Helper Bot
// Copyright (c) 2018 Vladimir "fat0troll" Hodakov
package config
// Struct is a main configuration structure that holds all other
// structs within.
type Struct struct {
TDLib TDLib `yaml:"tdlib"`
Announce Announce `yaml:"announce"`
}

14
internal/config/tdlib.go Normal file
View File

@@ -0,0 +1,14 @@
// Fantasy World Zookeeper Helper Bot
// Copyright (c) 2018 Vladimir "fat0troll" Hodakov
package config
// TDLib struct handles all configuration of tdlib
// tdlib is an official Telegram MTProto library
type TDLib struct {
APIID string `yaml:"api_id"`
APIHash string `yaml:"api_hash"`
DatabaseDirectory string `yaml:"database_directory"`
FilesDirectory string `yaml:"files_directory"`
ErrorsFile string `yaml:"errors_file"`
}