From c1f4453070e509e240ad355e64c52a1886840cda Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Fri, 18 Nov 2022 11:27:21 +0200 Subject: [PATCH] Added TEST server endpoint --- aiogram/client/telegram.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/aiogram/client/telegram.py b/aiogram/client/telegram.py index 502f950f56..5f267973a5 100644 --- a/aiogram/client/telegram.py +++ b/aiogram/client/telegram.py @@ -92,5 +92,11 @@ def from_base(cls, base: str, **kwargs: Any) -> "TelegramAPIServer": ) -# Main API server -PRODUCTION = TelegramAPIServer.from_base("https://api.telegram.org") +PRODUCTION = TelegramAPIServer( + base="https://api.telegram.org/bot{token}/{method}", + file="https://api.telegram.org/file/bot{token}/{path}", +) +TEST = TelegramAPIServer( + base="https://api.telegram.org/bot{token}/test/{method}", + file="https://api.telegram.org/file/bot{token}/test/{path}", +)