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

25 lines
454 B
Go
Raw Normal View History

2023-10-11 17:04:49 +02:00
package main
import (
ConfigMain "github.com/ManyakRus/starter/config"
2023-10-12 16:47:11 +02:00
"github.com/ManyakRus/starter/stopapp"
2023-10-11 17:04:49 +02:00
"github.com/ManyakRus/starter/telegram_client"
"github.com/ManyakRus/telegram_loki/internal/config"
)
func main() {
StartApp()
}
func StartApp() {
ConfigMain.LoadEnv()
config.FillSettings()
2023-10-12 16:47:11 +02:00
stopapp.StartWaitStop()
telegram_client.CreateTelegramClient(nil)
2023-10-11 17:04:49 +02:00
telegram_client.ConnectTelegram()
2023-10-12 16:47:11 +02:00
stopapp.GetWaitGroup_Main().Wait()
2023-10-11 17:04:49 +02:00
}