mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix Sphinx dependencies
This commit is contained in:
parent
2803d1d674
commit
84eefd1dc4
4 changed files with 60 additions and 8 deletions
|
|
@ -275,9 +275,9 @@ class Bot(ContextInstanceMixin["Bot"]):
|
|||
if file_id is None:
|
||||
raise TypeError("file can only be of the string or Downloadable type")
|
||||
|
||||
_file = await self.get_file(file_id)
|
||||
file_ = await self.get_file(file_id)
|
||||
# https://github.com/aiogram/aiogram/pull/282/files#r394110017
|
||||
file_path = cast(str, _file.file_path)
|
||||
file_path = cast(str, file_.file_path)
|
||||
|
||||
return await self.download_file(
|
||||
file_path, destination=destination, timeout=timeout, chunk_size=chunk_size, seek=seek
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue