mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Added TEST server endpoint
This commit is contained in:
parent
37742a4f15
commit
c1f4453070
1 changed files with 8 additions and 2 deletions
|
|
@ -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}",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue