Telegram: close updates channel on restart

Also removed some references to email.
This commit is contained in:
Harvey Tindall
2021-05-07 18:29:56 +01:00
parent 2d93b3b7ee
commit 51f2f4cc6a
3 changed files with 6 additions and 5 deletions
+1
View File
@@ -174,6 +174,7 @@ func (t *TelegramDaemon) run() {
}
case <-t.ShutdownChannel:
t.bot.StopReceivingUpdates()
t.ShutdownChannel <- "Down"
return
}