mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 01:54:53 +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]
|
method = methods[file_type]
|
||||||
if isinstance(file, str):
|
if isinstance(file, str):
|
||||||
payload[method] = file
|
payload[file_type] = file
|
||||||
req = self.request(method, payload)
|
req = self.request(method, payload)
|
||||||
else:
|
else:
|
||||||
data = {file_type: file}
|
data = {file_type: file}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue