Added TEST server endpoint

This commit is contained in:
Alex Root Junior 2022-11-18 11:27:21 +02:00
parent 37742a4f15
commit c1f4453070
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC

View file

@ -92,5 +92,11 @@ class 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}",
)