mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-12-22 08:37:12 +00:00
add defaults in StoryShareParams and StoryWidgetLink
This commit is contained in:
parent
2d11685b7b
commit
8e3e44769e
@ -10,7 +10,7 @@ external interface StoryShareParams {
|
||||
|
||||
fun StoryShareParams(
|
||||
text: String,
|
||||
widgetLink: StoryWidgetLink?
|
||||
widgetLink: StoryWidgetLink? = null
|
||||
): StoryShareParams {
|
||||
val json = json()
|
||||
json["text"] = text
|
||||
|
@ -9,7 +9,7 @@ external interface StoryWidgetLink {
|
||||
|
||||
fun StoryWidgetLink(
|
||||
url: String,
|
||||
name: String?
|
||||
name: String? = null
|
||||
): StoryWidgetLink {
|
||||
val json = json()
|
||||
json["url"] = url
|
||||
|
Loading…
Reference in New Issue
Block a user