Initial commit
This commit is contained in:
10
internal/config/struct.go
Normal file
10
internal/config/struct.go
Normal file
@@ -0,0 +1,10 @@
|
||||
// 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"`
|
||||
}
|
14
internal/config/tdlib.go
Normal file
14
internal/config/tdlib.go
Normal 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"`
|
||||
}
|
Reference in New Issue
Block a user