mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 09:55:21 +00:00
11 lines
425 B
Python
11 lines
425 B
Python
from aiogram.api.client.telegram import PRODUCTION
|
|
|
|
|
|
class TestAPIServer:
|
|
def test_method_url(self):
|
|
method_url = PRODUCTION.api_url(token="TOKEN", method="apiMethod")
|
|
assert method_url == "https://api.telegram.org/botTOKEN/apiMethod"
|
|
|
|
def test_file_url(self):
|
|
file_url = PRODUCTION.file_url(token="TOKEN", path="path")
|
|
assert file_url == "https://api.telegram.org/file/botTOKEN/path"
|