1
0
mirror of https://github.com/ManyakRus/telegram_loki.git synced 2024-12-13 21:42:22 +02:00
telegram_loki/internal/main.go
Nikitin Aleksandr f8036903bd готово
2023-10-13 13:28:49 +03:00

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()
}