mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-02 07:55:25 +00:00
37 lines
611 B
Kotlin
37 lines
611 B
Kotlin
package dev.inmo.tgbotapi.webapps.popup
|
|
|
|
external class PopupParams(
|
|
message: String,
|
|
title: String?,
|
|
buttons: Array<PopupButton>
|
|
) {
|
|
val title: String?
|
|
}
|
|
|
|
fun PopupParams(
|
|
message: String,
|
|
firstButton: PopupButton,
|
|
vararg otherButtons: PopupButton
|
|
) = PopupParams(
|
|
message,
|
|
null,
|
|
arrayOf(
|
|
firstButton,
|
|
*otherButtons
|
|
)
|
|
)
|
|
|
|
fun PopupParams(
|
|
title: String,
|
|
message: String,
|
|
firstButton: PopupButton,
|
|
vararg otherButtons: PopupButton
|
|
) = PopupParams(
|
|
message,
|
|
title,
|
|
arrayOf(
|
|
firstButton,
|
|
*otherButtons
|
|
)
|
|
)
|