import aiohttp
import asyncio

async def test_connection():
    async with aiohttp.ClientSession() as session:
        try:
            async with session.get("https://api.telegram.org") as response:
                print(f"Status: {response.status}")
        except Exception as e:
            print(f"Error: {e}")

if __name__ == "__main__":
    asyncio.run(test_connection())