1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-09-03 23:29:33 +00:00

fill changelog and remove old MainButton.onClick

This commit is contained in:
2024-07-15 08:20:44 +06:00
parent 4ce26c707e
commit e5ea980347
3 changed files with 8 additions and 6 deletions

View File

@@ -39,12 +39,6 @@ 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()
}
fun MainButton.setParams(params: MainButtonParams) = setParams(
json(
*listOfNotNull(