1
mirror of https://github.com/jlelse/GoBlog synced 2024-06-08 17:36:28 +00:00
This commit is contained in:
Jan-Lukas Else 2020-11-09 22:00:57 +01:00
parent 78c2ad722b
commit 3a4338ded2

View File

@ -10,7 +10,7 @@ import (
const telegramBaseURL = "https://api.telegram.org/bot"
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
}
var message bytes.Buffer