1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-09-19 00:56:09 +00:00

add @Deprecated on MainButton.onClick(EventHandler)

This commit is contained in:
SuLG-k 2024-07-11 20:35:22 +07:00
parent 016cfcb7cd
commit 40613e3418

View File

@ -36,6 +36,7 @@ data class MainButtonParams(
val isVisible: Boolean? = null
)
@Deprecated(message="Use onClick without EventHandler")
fun MainButton.onClick(eventHandler: EventHandler) = onClick {
val that = js("this").unsafeCast<WebApp>()
that.eventHandler()