diff --git a/main.go b/main.go index 1dfe900..99cfe65 100644 --- a/main.go +++ b/main.go @@ -61,7 +61,7 @@ func webhook(update tg.APIUpdate) { photos := make([]tg.APIInlineQueryResultPhoto, len(results.Data)) for i, card := range results.Data { - caption := fmt.Sprintf("Scryfall - EDHREC - cardmarket (%s €)", card.ScryfallURI, card.RelatedUris.Edhrec, card.PurchaseUris.Magiccardmarket) + caption := fmt.Sprintf("Scryfall - EDHREC (#%d) - cardmarket (%s €)", card.ScryfallURI, card.RelatedUris.Edhrec, card.EdhrecRank, card.PurchaseUris.Magiccardmarket, card.Eur) photos[i] = tg.APIInlineQueryResultPhoto{ Type: "photo", ResultID: card.ID, diff --git a/scryfall.go b/scryfall.go index 26ddaee..5abbf88 100644 --- a/scryfall.go +++ b/scryfall.go @@ -30,6 +30,7 @@ type CardData struct { BorderCrop string `json:"border_crop"` } `json:"image_uris"` Eur string `json:"eur"` + EdhrecRank int `json:"edhrec_rank"` RelatedUris struct { Gatherer string `json:"gatherer"` TcgplayerDecks string `json:"tcgplayer_decks"`