From 58ae9750ca34dffffe295f02eecaa5c5362364ba Mon Sep 17 00:00:00 2001 From: Yasir Aris M Date: Sat, 4 Jan 2025 20:43:01 +0700 Subject: [PATCH] Pyrofork: Fix typo --- pyrogram/methods/business/get_user_gifts.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyrogram/methods/business/get_user_gifts.py b/pyrogram/methods/business/get_user_gifts.py index badfe91d..cca2855b 100644 --- a/pyrogram/methods/business/get_user_gifts.py +++ b/pyrogram/methods/business/get_user_gifts.py @@ -28,7 +28,7 @@ class GetUserGifts: user_id: Union[int, str], offset: str = "", limit: int = 0, - ) -> Optional[AsyncGenerator["types.UserGift", None]]: + ) -> Optional[AsyncGenerator["types.StarGift", None]]: """Get gifts saved to profile by the given user. .. include:: /_includes/usable-by/users.rst @@ -70,13 +70,13 @@ class GetUserGifts: offset=offset, limit=limit ), - sleep_threshold=max(60, self.sleep_threshold) + sleep_threshold=60 ) users = {u.id: u for u in r.users} user_gifts = [ - await types.StarGift._parse(self, gift, users) + await types.StarGift._parse_user_star_gift(self, gift, users) for gift in r.gifts ]