layout: fix inline button recognition

This commit is contained in:
Demian 2020-10-11 15:29:50 +03:00
parent 0904e2ffec
commit 8518b36b32

View File

@ -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 {