Pyrofork: Fix typo

This commit is contained in:
Yasir Aris M 2025-01-04 20:43:01 +07:00 committed by GitHub
parent 334cf1ceb2
commit 58ae9750ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,7 +28,7 @@ class GetUserGifts:
user_id: Union[int, str], user_id: Union[int, str],
offset: str = "", offset: str = "",
limit: int = 0, limit: int = 0,
) -> Optional[AsyncGenerator["types.UserGift", None]]: ) -> Optional[AsyncGenerator["types.StarGift", None]]:
"""Get gifts saved to profile by the given user. """Get gifts saved to profile by the given user.
.. include:: /_includes/usable-by/users.rst .. include:: /_includes/usable-by/users.rst
@ -70,13 +70,13 @@ class GetUserGifts:
offset=offset, offset=offset,
limit=limit limit=limit
), ),
sleep_threshold=max(60, self.sleep_threshold) sleep_threshold=60
) )
users = {u.id: u for u in r.users} users = {u.id: u for u in r.users}
user_gifts = [ user_gifts = [
await types.StarGift._parse(self, gift, users) await types.StarGift._parse_user_star_gift(self, gift, users)
for gift in r.gifts for gift in r.gifts
] ]