1
0
mirror of synced 2024-11-22 04:26:01 +03:00

add channel id

This commit is contained in:
Alex Lushpai 2018-06-01 18:17:47 +03:00
parent f238d96f17
commit 0f2d0bb331

View File

@ -101,7 +101,8 @@ func telegramWebhookHandler(w http.ResponseWriter, r *http.Request, token string
Lastname: update.Message.From.LastName, Lastname: update.Message.From.LastName,
Language: update.Message.From.LanguageCode, Language: update.Message.From.LanguageCode,
}, },
Channel: b.Channel, Channel: b.Channel,
ExternalChatID: strconv.FormatInt(update.Message.Chat.ID, 10),
} }
data, st, err := client.Messages(snd) data, st, err := client.Messages(snd)