mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-10-25 14:07:28 +00:00
add defaults in StoryShareParams and StoryWidgetLink
This commit is contained in:
1 parent
2d11685b7b
commit
8e3e44769e
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -10,7 +10,7 @@ external interface StoryShareParams {
|
||||
|
||||
fun StoryShareParams(
|
||||
text: String,
|
||||
widgetLink: StoryWidgetLink?
|
||||
widgetLink: StoryWidgetLink? = null
|
||||
): StoryShareParams {
|
||||
val json = json()
|
||||
json["text"] = text
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ external interface StoryWidgetLink {
|
||||
|
||||
fun StoryWidgetLink(
|
||||
url: String,
|
||||
name: String?
|
||||
name: String? = null
|
||||
): StoryWidgetLink {
|
||||
val json = json()
|
||||
json["url"] = url
|
||||
|
||||
Reference in new issue
Block a user