Update InlineKeyboardMarkup.kt

This commit is contained in:
InsanusMokrassar 2021-04-29 01:18:07 +06:00 committed by GitHub
parent eb923a6338
commit f447be02dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ data class InlineKeyboardMarkup(
// first button is not PayInlineKeyboardButton
val firstIsPaymentButton = keyboard.first().firstOrNull() is PayInlineKeyboardButton
if (!firstIsPaymentButton) {
error("In case if PayInlineKeyboardButton included in keyboard - it must ")
error("In case if PayInlineKeyboardButton included in keyboard - it must be the first one")
}
}
}