diff --git a/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/MainButton.kt b/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/MainButton.kt index 984d3221e0..502879a4b9 100644 --- a/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/MainButton.kt +++ b/tgbotapi.webapps/src/jsMain/kotlin/dev/inmo/tgbotapi/webapps/MainButton.kt @@ -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() that.eventHandler()