mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-12-27 19:17:12 +00:00
add @Deprecated on MainButton.onClick(EventHandler)
This commit is contained in:
parent
016cfcb7cd
commit
40613e3418
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user