Fix inline keyboard (IS THIS THE ONE?)

This commit is contained in:
Hamcha 2018-09-17 14:47:09 +02:00
parent c66e5c19d3
commit 86dabaacf4
Signed by: hamcha
GPG key ID: A40413D21021EAEE

View file

@ -68,7 +68,8 @@ func webhook(update tg.APIUpdate) {
PhotoURL: card.ImageUris.Large,
ThumbURL: card.ImageUris.Normal,
Title: card.Name,
ReplyMarkup: []tg.APIInlineKeyboardButton{
ReplyMarkup: &tg.APIInlineKeyboardMarkup{
InlineKeyboard: [][]tg.APIInlineKeyboardButton{{
{
Text: "Scryfall",
URL: card.ScryfallURI,
@ -79,6 +80,7 @@ func webhook(update tg.APIUpdate) {
Text: fmt.Sprintf("Cardmarket (%s €)", card.ScryfallURI),
URL: card.PurchaseUris.Magiccardmarket,
},
}},
},
}
}