From 0d3976a58bed91fd86a9d8c6d548f471d2dc0084 Mon Sep 17 00:00:00 2001 From: OlegYch Date: Thu, 8 Aug 2024 18:49:05 +0300 Subject: [PATCH] fix: Exactly one of the optional fields must be used to specify type of the button. https://core.telegram.org/bots/api#inlinekeyboardbutton (#422) --- core/src/com/bot4s/telegram/models/ReplyMarkup.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/com/bot4s/telegram/models/ReplyMarkup.scala b/core/src/com/bot4s/telegram/models/ReplyMarkup.scala index 94349371..ff867aef 100644 --- a/core/src/com/bot4s/telegram/models/ReplyMarkup.scala +++ b/core/src/com/bot4s/telegram/models/ReplyMarkup.scala @@ -250,8 +250,10 @@ case class InlineKeyboardButton( callbackData, url, loginUrl, + webApp, switchInlineQuery, switchInlineQueryCurrentChat, + switchInlineQueryChosenChat, callbackGame, pay ).count(_.isDefined) == 1,