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
24
main.go
24
main.go
|
@ -68,17 +68,19 @@ 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",
|
{
|
||||||
URL: card.ScryfallURI,
|
Text: "Scryfall",
|
||||||
}, {
|
URL: card.ScryfallURI,
|
||||||
Text: fmt.Sprintf("EDHREC (#%d)", card.EdhrecRank),
|
}, {
|
||||||
URL: card.RelatedUris.Edhrec,
|
Text: fmt.Sprintf("EDHREC (#%d)", card.EdhrecRank),
|
||||||
}, {
|
URL: card.RelatedUris.Edhrec,
|
||||||
Text: fmt.Sprintf("Cardmarket (%s €)", card.ScryfallURI),
|
}, {
|
||||||
URL: card.PurchaseUris.Magiccardmarket,
|
Text: fmt.Sprintf("Cardmarket (%s €)", card.ScryfallURI),
|
||||||
},
|
URL: card.PurchaseUris.Magiccardmarket,
|
||||||
|
},
|
||||||
|
}},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue