import aiohttp


async def get_tg_dm_player_json():
    """
    Helper function for pulling the top 10,000 AoE2 players' info.
    """
    async with aiohttp.ClientSession() as session2:
        async with session2.get("https://aoe2.net/api/leaderboard?game=aoe2de&leaderboard_id=1&start=1&count=10000") as r:
            r = await r.json(content_type=None)
            await session2.close()
            return r