From 899533583f3429c0eb0fa9fe9de66e3d8b665ccd Mon Sep 17 00:00:00 2001 From: OlegYch Date: Thu, 8 Aug 2024 16:08:07 +0300 Subject: [PATCH] Exactly one of the optional fields must be used to specify type of the button. https://core.telegram.org/bots/api#inlinekeyboardbutton --- 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,