From 4e325a63d0e6bb7d233bb952cbc216150c4fa2ec Mon Sep 17 00:00:00 2001 From: Mahdi K <106227973+m2k7m@users.noreply.github.com> Date: Mon, 7 Oct 2024 17:00:32 +0300 Subject: [PATCH] Fix get_stories types (KurimuzonAkuma/pyrogram#97) * Fix get_stories types --- pyrogram/methods/stories/get_stories.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyrogram/methods/stories/get_stories.py b/pyrogram/methods/stories/get_stories.py index 88f6fa77a8..943d9c44cd 100644 --- a/pyrogram/methods/stories/get_stories.py +++ b/pyrogram/methods/stories/get_stories.py @@ -16,7 +16,7 @@ # You should have received a copy of the GNU Lesser General Public License # along with Pyrogram. If not, see . -from typing import Union, Iterable +from typing import Union, Iterable, List import pyrogram from pyrogram import raw, types @@ -27,7 +27,7 @@ async def get_stories( self: "pyrogram.Client", story_sender_chat_id: Union[int, str], story_ids: Union[int, Iterable[int]], - ) -> "types.Story": + ) -> Union["types.Story", List["types.Story"]] : """Get one or more stories from a chat by using stories identifiers. .. include:: /_includes/usable-by/users.rst