Compare commits
2 commits
4895d5396c
...
05c759e17b
Author | SHA1 | Date | |
---|---|---|---|
05c759e17b | |||
e7b62434a2 |
2 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
8
main.go
8
main.go
|
@ -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{
|
||||
|
|
Loading…
Reference in a new issue