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}", +)