From 8518b36b32b3c208329186c4fe3c70e4c8be7b1a Mon Sep 17 00:00:00 2001 From: Demian Date: Sun, 11 Oct 2020 15:29:50 +0300 Subject: [PATCH] layout: fix inline button recognition --- layout/settings.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/layout/settings.go b/layout/settings.go index 962e2f2..537a857 100644 --- a/layout/settings.go +++ b/layout/settings.go @@ -125,7 +125,10 @@ func (lt *Layout) UnmarshalYAML(data []byte) error { markup := Markup{keyboard: tmpl} for _, row := range kb { for _, btn := range row { - inline := btn.Unique != "" + inline := btn.Unique != "" || + btn.InlineQuery != "" || + btn.InlineQueryChat != "" + if markup.inline == nil { markup.inline = &inline } else if *markup.inline != inline {