dont send empty telegram messages
This commit is contained in:
parent
76a59298e5
commit
8129c04ec5
@ -23,7 +23,7 @@ func InitTelegramBot() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func SendTelegramMessage(text string) {
|
func SendTelegramMessage(text string) {
|
||||||
if TelegramBot == nil {
|
if TelegramBot == nil || strings.TrimSpace(text) == "" {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user