@@ -38,6 +38,9 @@ class SmartappManifest(VerifiedPayloadBaseModel):
3838 android : SmartappManifestAndroidParams
3939 web : SmartappManifestWebParams
4040 unread_counter_link : SmartappManifestUnreadCounterParams
41+ store_on_close : bool = False
42+ preload_in_background : bool = False
43+ link_regex : str | None = None
4144
4245
4346class SmartappManifestPayload (UnverifiedPayloadBaseModel ):
@@ -46,6 +49,9 @@ class SmartappManifestPayload(UnverifiedPayloadBaseModel):
4649 web : Missing [SmartappManifestWebParams ] = Undefined
4750 aurora : Missing [SmartappManifestAuroraParams ] = Undefined
4851 unread_counter_link : Missing [SmartappManifestUnreadCounterParams ] = Undefined
52+ store_on_close : Missing [bool ] = Undefined
53+ preload_in_background : Missing [bool ] = Undefined
54+ link_regex : Missing [str | None ] = Undefined
4955
5056
5157class BotXAPISmartAppManifestRequestPayload (UnverifiedPayloadBaseModel ):
@@ -58,6 +64,9 @@ def from_domain(
5864 android : Missing [SmartappManifestAndroidParams ] = Undefined ,
5965 web_layout : Missing [SmartappManifestWebParams ] = Undefined ,
6066 unread_counter : Missing [SmartappManifestUnreadCounterParams ] = Undefined ,
67+ store_on_close : Missing [bool ] = Undefined ,
68+ preload_in_background : Missing [bool ] = Undefined ,
69+ link_regex : Missing [str | None ] = Undefined ,
6170 ) -> "BotXAPISmartAppManifestRequestPayload" :
6271 if web_layout is Undefined and unread_counter is Undefined :
6372 return cls (manifest = {})
@@ -68,6 +77,9 @@ def from_domain(
6877 android = android ,
6978 web = web_layout ,
7079 unread_counter_link = unread_counter ,
80+ store_on_close = store_on_close ,
81+ preload_in_background = preload_in_background ,
82+ link_regex = link_regex ,
7183 ),
7284 )
7385
0 commit comments