Skip to content

Commit 21b4ffc

Browse files
committed
gelbooru: Fix sending nil reply markup
1 parent b9388cf commit 21b4ffc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/gelbooru/gelbooru.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@ func (p *Plugin) doGelbooruSearch(b *gotgbot.Bot, c *plugin.GobotContext, query
226226

227227
post := response.Post[0]
228228

229-
var replyMarkup *gotgbot.InlineKeyboardMarkup
229+
var replyMarkup gotgbot.InlineKeyboardMarkup
230230
if response.Attributes.Count > 1 && queryID > 0 {
231-
replyMarkup = &gotgbot.InlineKeyboardMarkup{
231+
replyMarkup = gotgbot.InlineKeyboardMarkup{
232232
InlineKeyboard: [][]gotgbot.InlineKeyboardButton{
233233
{
234234
{

0 commit comments

Comments
 (0)