mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-24 11:08:43 +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
|
val isVisible: Boolean? = null
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@Deprecated(message="Use onClick without EventHandler")
|
||||||
fun MainButton.onClick(eventHandler: EventHandler) = onClick {
|
fun MainButton.onClick(eventHandler: EventHandler) = onClick {
|
||||||
val that = js("this").unsafeCast<WebApp>()
|
val that = js("this").unsafeCast<WebApp>()
|
||||||
that.eventHandler()
|
that.eventHandler()
|
||||||
|
Loading…
Reference in New Issue
Block a user