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( fun StoryShareParams(
text: String, text: String,
widgetLink: StoryWidgetLink? widgetLink: StoryWidgetLink? = null
): StoryShareParams { ): StoryShareParams {
val json = json() val json = json()
json["text"] = text json["text"] = text

View File

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