dont send empty telegram messages

This commit is contained in:
milarin 2023-01-20 14:31:27 +01:00
parent 76a59298e5
commit 8129c04ec5

View File

@ -23,7 +23,7 @@ func InitTelegramBot() error {
}
func SendTelegramMessage(text string) {
if TelegramBot == nil {
if TelegramBot == nil || strings.TrimSpace(text) == "" {
return
}