Compare commits

...

2 commits

Author SHA1 Message Date
05c759e17b
Fix width/height of inline results
All checks were successful
continuous-integration/drone/push Build is passing
2019-08-26 12:44:40 +02:00
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{