mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-10-25 14:07:28 +00:00
fill changelog and remove old MainButton.onClick
This commit is contained in:
1 parent
4ce26c707e
commit
e5ea980347
3 files changed
+8
-6
No files matched your search
@@ -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