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:
@@ -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(
|
||||
|
Reference in New Issue
Block a user