Skip to content

Commit

Permalink
fix: Exactly one of the optional fields must be used to specify type …
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegYch authored Aug 8, 2024
1 parent 8ffe9a5 commit 0d3976a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/com/bot4s/telegram/models/ReplyMarkup.scala
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,10 @@ case class InlineKeyboardButton(
callbackData,
url,
loginUrl,
webApp,
switchInlineQuery,
switchInlineQueryCurrentChat,
switchInlineQueryChosenChat,
callbackGame,
pay
).count(_.isDefined) == 1,
Expand Down

0 comments on commit 0d3976a

Please sign in to comment.