mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 00:03:48 +00:00
fill changelog and add StoryShareParams factory function
This commit is contained in:
parent
bd6ff747cb
commit
799ad6ca66
@ -4,6 +4,15 @@
|
|||||||
|
|
||||||
**THIS UPDATE CONTAINS ADDING OF SUPPORT FOR BOTS API 7.8**
|
**THIS UPDATE CONTAINS ADDING OF SUPPORT FOR BOTS API 7.8**
|
||||||
|
|
||||||
|
* `Core`:
|
||||||
|
* `OptionallyBusinessConnectionRequest` now extends `WithOptionalBusinessConnectionId`
|
||||||
|
* Add `hasMainWebApp` in `ExtendedBot`
|
||||||
|
* `API`:
|
||||||
|
* Add `BusinessConnectionId` to pin/unpin methods
|
||||||
|
* `WebApp`:
|
||||||
|
* Add `shareToStory` in `WebApp`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## 15.2.0
|
## 15.2.0
|
||||||
|
|
||||||
|
@ -5,3 +5,13 @@ external interface StoryShareParams {
|
|||||||
@JsName("widget_link")
|
@JsName("widget_link")
|
||||||
val widgetLink: StoryWidgetLink?
|
val widgetLink: StoryWidgetLink?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun StoryShareParams(
|
||||||
|
text: String,
|
||||||
|
widgetLink: StoryWidgetLink?
|
||||||
|
): StoryShareParams {
|
||||||
|
val result: dynamic = js("{}")
|
||||||
|
result["text"] = text
|
||||||
|
widgetLink ?.let { result["widgetLink"] = it }
|
||||||
|
return result.unsafeCast<StoryShareParams>()
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user