mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fixed mypy
This commit is contained in:
parent
55af0148c8
commit
abf0715413
1 changed files with 2 additions and 1 deletions
|
|
@ -292,7 +292,8 @@ class Bot(ContextInstanceMixin["Bot"]):
|
|||
|
||||
try:
|
||||
if isinstance(destination, (str, pathlib.Path)):
|
||||
return await self.__download_file(destination=destination, stream=stream)
|
||||
await self.__download_file(destination=destination, stream=stream)
|
||||
return None
|
||||
else:
|
||||
return await self.__download_file_binary_io(
|
||||
destination=destination, seek=seek, stream=stream
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue