From 16cda7af67a7b3193bd9a46e30d57c25d8222170 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Fri, 2 Jun 2017 04:45:27 +0300 Subject: [PATCH] Fix sending files by url/file_id --- aiogram/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/bot.py b/aiogram/bot.py index f98b75be..90963685 100644 --- a/aiogram/bot.py +++ b/aiogram/bot.py @@ -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}