Fix sending files by url/file_id

This commit is contained in:
Alex Root Junior 2017-06-02 04:45:27 +03:00
parent c8b0f690a9
commit 16cda7af67

View file

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