import aiohttp
import asyncio
from src.config.settings import BOT_TOKEN

async def test_telegram():
    proxy = None  # پروکسی خودت رو بذار، اگه نداری None بذار
    async with aiohttp.ClientSession() as session:
        url = f"https://api.telegram.org/bot{BOT_TOKEN}/getMe"
        try:
            async with session.get(url, proxy=proxy) as response:
                print(f"Status: {response.status}")
                print(await response.json())
        except Exception as e:
            print(f"Error: {e}")

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