This commit is contained in:
Jan-Lukas Else 2020-11-09 22:00:57 +01:00
parent 78c2ad722b
commit 3a4338ded2
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ import (
const telegramBaseURL = "https://api.telegram.org/bot" const telegramBaseURL = "https://api.telegram.org/bot"
func (p *post) tgPost() { func (p *post) tgPost() {
if !appConfig.Blogs[p.Blog].Telegram.Enabled { if appConfig.Blogs[p.Blog].Telegram == nil || !appConfig.Blogs[p.Blog].Telegram.Enabled {
return return
} }
var message bytes.Buffer var message bytes.Buffer