From 7f448b4d8e90f1da7f5f3a85ae40244b6ed7f180 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Mon, 9 Nov 2020 11:39:19 +0200 Subject: [PATCH] Fix files URL template --- aiogram/bot/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/bot/api.py b/aiogram/bot/api.py index 03c7e209..9b86e7ca 100644 --- a/aiogram/bot/api.py +++ b/aiogram/bot/api.py @@ -47,7 +47,7 @@ class TelegramAPIServer: base = base.rstrip("/") return cls( base=f"{base}/bot{{token}}/{{method}}", - file=f"{base}/file/bot{{token}}/{{method}}", + file=f"{base}/file/bot{{token}}/{{path}}", )