From 51b6b27d4a632a2f2c53bcc57ae1c3c7e599ee6c Mon Sep 17 00:00:00 2001 From: Darskiy Date: Tue, 20 May 2025 22:21:48 +0300 Subject: [PATCH] refactor(hints): expand FileLike type hint --- telethon/hints.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/telethon/hints.py b/telethon/hints.py index 67f830b6..a52aac74 100644 --- a/telethon/hints.py +++ b/telethon/hints.py @@ -44,7 +44,12 @@ FileLike = typing.Union[ typing.BinaryIO, types.TypeMessageMedia, types.TypeInputFile, - types.TypeInputFileLocation + types.TypeInputFileLocation, + types.TypeInputMedia, + types.TypePhoto, + types.TypeInputPhoto, + types.TypeDocument, + types.TypeInputDocument ] # Can't use `typing.Type` in Python 3.5.2