delete getUpdates chan

This commit is contained in:
Pavel 2024-08-18 11:20:29 +03:00
parent 4c78714718
commit 6a5f944df5

@ -71,13 +71,6 @@ func Run(cfg *config.Config, build Build) {
clients := initialize.NewClients(logger, bot, cfg.TelegramChannelID, cfg.TemplatePath)
bot.GetUpdatesChan(tgbotapi.UpdateConfig{
Offset: 0,
Limit: 0,
Timeout: 0,
AllowedUpdates: nil,
})
err = clients.Telegram.SendMessage("Bot started")
if err != nil {
logger.Error("TelegramBot", zap.Error(err))