Compare commits
No commits in common. "05c759e17b1361dbc10c417dcc17ffd63a681bee" and "4895d5396c0d2e591b5b860a9edfa55bd693063e" have entirely different histories.
05c759e17b
...
4895d5396c
2 changed files with 3 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
||||||
# mlpcardbot
|
# mlpcardbot
|
||||||
|
|
||||||
[![Build Status](https://drone.zyg.ovh/api/badges/mcg/mlpcardbot/status.svg)](https://drone.zyg.ovh/mcg/mlpcardbot)
|
[![Build Status](https://drone.zyg.ovh/api/badges/Hamcha/mlpcardbot/status.svg)](https://drone.zyg.ovh/Hamcha/mlpcardbot)
|
||||||
|
|
||||||
Telegram bot for sharing MLP:CCG cards
|
Telegram bot for sharing MLP:CCG cards
|
||||||
|
|
8
main.go
8
main.go
|
@ -101,16 +101,12 @@ func webhook(update tg.APIUpdate) {
|
||||||
ThumbURL: face,
|
ThumbURL: face,
|
||||||
Title: card.FullName,
|
Title: card.FullName,
|
||||||
Caption: caption,
|
Caption: caption,
|
||||||
Width: 344,
|
Width: 672,
|
||||||
Height: 480,
|
Height: 936,
|
||||||
ReplyMarkup: &tg.APIInlineKeyboardMarkup{
|
ReplyMarkup: &tg.APIInlineKeyboardMarkup{
|
||||||
InlineKeyboard: [][]tg.APIInlineKeyboardButton{buttons},
|
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{
|
err = api.AnswerInlineQuery(tg.InlineQueryResponse{
|
||||||
|
|
Loading…
Reference in a new issue