diff --git a/local/telegram/telegram.go b/local/telegram/telegram.go index b03084b..25b13aa 100644 --- a/local/telegram/telegram.go +++ b/local/telegram/telegram.go @@ -83,6 +83,9 @@ func Connect() { // Shutdown disconnects from Telegram func Shutdown() { - client.DestroyInstance() + _, err := client.Destroy() + if err != nil { + log.Error().Err(err).Msg("Failed to destroy Telegram client instance") + } log.Info().Msg("Connection with Telegram closed") }