Compare commits

...

2 Commits

Author SHA1 Message Date
Hamcha 05c759e17b
Fix width/height of inline results
continuous-integration/drone/push Build is passing Details
2019-08-26 12:44:40 +02:00
Hamcha e7b62434a2
Wrong repo! 2019-08-26 12:43:08 +02:00
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# mlpcardbot
[![Build Status](https://drone.zyg.ovh/api/badges/Hamcha/mlpcardbot/status.svg)](https://drone.zyg.ovh/Hamcha/mlpcardbot)
[![Build Status](https://drone.zyg.ovh/api/badges/mcg/mlpcardbot/status.svg)](https://drone.zyg.ovh/mcg/mlpcardbot)
Telegram bot for sharing MLP:CCG cards

View File

@ -101,12 +101,16 @@ func webhook(update tg.APIUpdate) {
ThumbURL: face,
Title: card.FullName,
Caption: caption,
Width: 672,
Height: 936,
Width: 344,
Height: 480,
ReplyMarkup: &tg.APIInlineKeyboardMarkup{
InlineKeyboard: [][]tg.APIInlineKeyboardButton{buttons},
},
}
// Flip width/height for problems
if card.Type == "Problem" {
photos[i].Width, photos[i].Height = photos[i].Height, photos[i].Width
}
}
err = api.AnswerInlineQuery(tg.InlineQueryResponse{