File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -240,12 +240,12 @@ type InlineButton struct {
240240}
241241
242242// MarshalJSON implements json.Marshaler interface.
243- // It needed to avoid InlineQueryChat and Login fields conflict.
244- // If you have Login field in your button, InlineQueryChat must be skipped.
243+ // It needed to avoid InlineQueryChat and Login or WebApp fields conflict.
244+ // If you have Login or WebApp field in your button, InlineQueryChat must be skipped.
245245func (t * InlineButton ) MarshalJSON () ([]byte , error ) {
246246 type IB InlineButton
247247
248- if t .Login != nil {
248+ if t .Login != nil || t . WebApp != nil {
249249 return json .Marshal (struct {
250250 IB
251251 InlineQueryChat string `json:"switch_inline_query_current_chat,omitempty"`
You can’t perform that action at this time.
0 commit comments