mirror of
https://github.com/ManyakRus/telegram_loki.git
synced 2024-12-13 21:42:22 +02:00
28 lines
523 B
Go
28 lines
523 B
Go
package main
|
|
|
|
import (
|
|
ConfigMain "github.com/ManyakRus/starter/config"
|
|
"github.com/ManyakRus/starter/stopapp"
|
|
"github.com/ManyakRus/starter/telegram_client"
|
|
"github.com/ManyakRus/telegram_loki/internal/config"
|
|
"github.com/ManyakRus/telegram_loki/internal/logic"
|
|
)
|
|
|
|
func main() {
|
|
StartApp()
|
|
}
|
|
|
|
func StartApp() {
|
|
ConfigMain.LoadEnv()
|
|
config.FillSettings()
|
|
|
|
stopapp.StartWaitStop()
|
|
|
|
telegram_client.CreateTelegramClient(nil)
|
|
telegram_client.ConnectTelegram()
|
|
|
|
logic.Start()
|
|
|
|
stopapp.GetWaitGroup_Main().Wait()
|
|
}
|