refactor(hints): expand FileLike type hint

This commit is contained in:
Darskiy 2025-05-20 22:21:48 +03:00
parent 4b50fc9415
commit 51b6b27d4a

View File

@ -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