mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-09 09:22:03 +00:00
Fix sending files by url/file_id
This commit is contained in:
parent
c8b0f690a9
commit
16cda7af67
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ class AIOGramBot:
|
|||
|
||||
method = methods[file_type]
|
||||
if isinstance(file, str):
|
||||
payload[method] = file
|
||||
payload[file_type] = file
|
||||
req = self.request(method, payload)
|
||||
else:
|
||||
data = {file_type: file}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue