Fix inline keyboard (IS THIS THE ONE?)
This commit is contained in:
parent
c66e5c19d3
commit
86dabaacf4
1 changed files with 13 additions and 11 deletions
4
main.go
4
main.go
|
@ -68,7 +68,8 @@ func webhook(update tg.APIUpdate) {
|
||||||
PhotoURL: card.ImageUris.Large,
|
PhotoURL: card.ImageUris.Large,
|
||||||
ThumbURL: card.ImageUris.Normal,
|
ThumbURL: card.ImageUris.Normal,
|
||||||
Title: card.Name,
|
Title: card.Name,
|
||||||
ReplyMarkup: []tg.APIInlineKeyboardButton{
|
ReplyMarkup: &tg.APIInlineKeyboardMarkup{
|
||||||
|
InlineKeyboard: [][]tg.APIInlineKeyboardButton{{
|
||||||
{
|
{
|
||||||
Text: "Scryfall",
|
Text: "Scryfall",
|
||||||
URL: card.ScryfallURI,
|
URL: card.ScryfallURI,
|
||||||
|
@ -79,6 +80,7 @@ func webhook(update tg.APIUpdate) {
|
||||||
Text: fmt.Sprintf("Cardmarket (%s €)", card.ScryfallURI),
|
Text: fmt.Sprintf("Cardmarket (%s €)", card.ScryfallURI),
|
||||||
URL: card.PurchaseUris.Magiccardmarket,
|
URL: card.PurchaseUris.Magiccardmarket,
|
||||||
},
|
},
|
||||||
|
}},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue