Skip to content

Commit

Permalink
Added TEST server endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
JrooTJunior committed Nov 18, 2022
1 parent 37742a4 commit c1f4453
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions aiogram/client/telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
)

0 comments on commit c1f4453

Please sign in to comment.