@@ -102,6 +102,9 @@ class Story(Object, Update):
102
102
The story is deleted.
103
103
A story can be deleted in case it was deleted or you tried to retrieve a story that doesn't exist yet.
104
104
105
+ album_ids (List of ``int``):
106
+ Identifiers of story albums to which the story is added; only for manageable stories.
107
+
105
108
link (``str``, *property*):
106
109
Generate a link to this story, only for Telegram Premium chats having usernames. Can be None if the story cannot have a link.
107
110
@@ -132,6 +135,7 @@ def __init__(
132
135
forwards : int = None ,
133
136
skipped : bool = None ,
134
137
deleted : bool = None ,
138
+ album_ids : list [int ] = None ,
135
139
_raw = None
136
140
):
137
141
super ().__init__ (client )
@@ -157,6 +161,7 @@ def __init__(
157
161
self .forwards = forwards
158
162
self .skipped = skipped
159
163
self .deleted = deleted
164
+ self .album_ids = album_ids
160
165
self ._raw = _raw
161
166
162
167
@staticmethod
@@ -182,6 +187,7 @@ def _parse_story_item(
182
187
is_visible_only_for_self = None
183
188
areas = None
184
189
privacy_settings = None
190
+ album_ids = None
185
191
186
192
if isinstance (story_item , raw .types .StoryItemDeleted ):
187
193
deleted = True
@@ -235,6 +241,8 @@ def _parse_story_item(
235
241
area ,
236
242
) for area in story_item .media_areas
237
243
]
244
+
245
+ album_ids = story_item .albums
238
246
239
247
return (
240
248
date ,
@@ -255,6 +263,7 @@ def _parse_story_item(
255
263
is_visible_only_for_self ,
256
264
areas ,
257
265
privacy_settings ,
266
+ album_ids ,
258
267
)
259
268
260
269
@staticmethod
@@ -292,6 +301,7 @@ async def _parse(
292
301
areas = None
293
302
privacy_settings = None
294
303
repost_info = None
304
+ album_ids = None
295
305
296
306
if story_media :
297
307
rawupdate = story_media
@@ -375,6 +385,7 @@ async def _parse(
375
385
is_visible_only_for_self ,
376
386
areas ,
377
387
privacy_settings ,
388
+ album_ids ,
378
389
) = Story ._parse_story_item (client , story_item )
379
390
380
391
if not chat and story_item .from_id :
@@ -416,6 +427,7 @@ async def _parse(
416
427
areas = areas ,
417
428
privacy_settings = privacy_settings ,
418
429
repost_info = repost_info ,
430
+ album_ids = album_ids ,
419
431
)
420
432
421
433
async def react (
0 commit comments