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 {
face, _, buttons := getCardEntry(card, facenum)
api.EditMedia(tg.ClientEditMediaData{
ChatID: update.Callback.Message.Chat.ChatID,
MessageID: update.Callback.Message.MessageID,
InlineID: update.Callback.InlineID,
Media: tg.APIInputMediaPhoto{
Type: "photo",
Media: face.Large,