From a8d249bfc360f9a1a83142feb9087b0f996d4e06 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Thu, 13 Dec 2018 13:57:37 +0100 Subject: [PATCH] Oops --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 3937ce0..e72fba0 100644 --- a/main.go +++ b/main.go @@ -165,8 +165,8 @@ func webhook(update tg.APIUpdate) { if err == nil { face, _, buttons := getCardEntry(card, facenum) api.EditMedia(tg.ClientEditMediaData{ - ChatID: update.Message.Chat.ChatID, - MessageID: update.Message.MessageID, + ChatID: update.Callback.Message.Chat.ChatID, + MessageID: update.Callback.Message.MessageID, Media: tg.APIInputMediaPhoto{ Type: "photo", Media: face.Large,