Skip to content

Commit

Permalink
Fix get_stories types (KurimuzonAkuma#97)
Browse files Browse the repository at this point in the history
* Fix get_stories types
  • Loading branch information
m2k7m authored and SpEcHiDe committed Oct 14, 2024
1 parent 060ab37 commit 4e325a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyrogram/methods/stories/get_stories.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.

from typing import Union, Iterable
from typing import Union, Iterable, List

import pyrogram
from pyrogram import raw, types
Expand All @@ -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
Expand Down

0 comments on commit 4e325a6

Please sign in to comment.