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:
parent
2d11685b7b
commit
8e3e44769e
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user