Ah it's an inline message, RIIIIIGHT

This commit is contained in:
Hamcha 2018-12-13 14:03:10 +01:00
parent a8d249bfc3
commit c413039a6b
Signed by: hamcha
GPG key ID: A40413D21021EAEE

View file

@ -165,8 +165,7 @@ func webhook(update tg.APIUpdate) {
if err == nil { if err == nil {
face, _, buttons := getCardEntry(card, facenum) face, _, buttons := getCardEntry(card, facenum)
api.EditMedia(tg.ClientEditMediaData{ api.EditMedia(tg.ClientEditMediaData{
ChatID: update.Callback.Message.Chat.ChatID, InlineID: update.Callback.InlineID,
MessageID: update.Callback.Message.MessageID,
Media: tg.APIInputMediaPhoto{ Media: tg.APIInputMediaPhoto{
Type: "photo", Type: "photo",
Media: face.Large, Media: face.Large,