mirror of
https://github.com/tucnak/telebot
synced 2024-11-11 01:10:39 +00:00
layout: fix inline button recognition
This commit is contained in:
parent
0904e2ffec
commit
8518b36b32
@ -125,7 +125,10 @@ func (lt *Layout) UnmarshalYAML(data []byte) error {
|
|||||||
markup := Markup{keyboard: tmpl}
|
markup := Markup{keyboard: tmpl}
|
||||||
for _, row := range kb {
|
for _, row := range kb {
|
||||||
for _, btn := range row {
|
for _, btn := range row {
|
||||||
inline := btn.Unique != ""
|
inline := btn.Unique != "" ||
|
||||||
|
btn.InlineQuery != "" ||
|
||||||
|
btn.InlineQueryChat != ""
|
||||||
|
|
||||||
if markup.inline == nil {
|
if markup.inline == nil {
|
||||||
markup.inline = &inline
|
markup.inline = &inline
|
||||||
} else if *markup.inline != inline {
|
} else if *markup.inline != inline {
|
||||||
|
Loading…
Reference in New Issue
Block a user