Skip to content

Commit b9e2f86

Browse files
Follow-Up: 14eb285
Co-authored-by: anonymousx97 <[email protected]>
1 parent 14eb285 commit b9e2f86

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pyrogram/methods/users/get_chat_photos.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,11 @@ async def get_chat_photos(
111111
current = 0
112112

113113
for photo in photos:
114+
await sleep(0)
115+
114116
if not photo:
115117
continue
116118

117-
await sleep(0)
118119
yield photo
119120

120121
current += 1
@@ -155,10 +156,11 @@ async def get_chat_photos(
155156
offset += len(photos)
156157

157158
for photo in photos:
159+
await sleep(0)
160+
158161
if not photo:
159162
continue
160163

161-
await sleep(0)
162164
yield photo
163165

164166
current += 1

0 commit comments

Comments
 (0)