1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 00:03:48 +00:00

add defaults in StoryShareParams and StoryWidgetLink

This commit is contained in:
InsanusMokrassar 2024-08-01 17:43:08 +06:00
parent 2d11685b7b
commit 8e3e44769e
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ external interface StoryShareParams {
fun StoryShareParams(
text: String,
widgetLink: StoryWidgetLink?
widgetLink: StoryWidgetLink? = null
): StoryShareParams {
val json = json()
json["text"] = text

View File

@ -9,7 +9,7 @@ external interface StoryWidgetLink {
fun StoryWidgetLink(
url: String,
name: String?
name: String? = null
): StoryWidgetLink {
val json = json()
json["url"] = url