summaryrefslogtreecommitdiff
path: root/ATRI/utils/ub_paste.py
blob: c029afea79397be8e578ac608aeddbadb517277d (plain)
1
2
3
4
5
6
7
8
9
10
11
from aiohttp import ClientSession


URL = "https://paste.ubuntu.com/"


async def paste(form_data) -> str:
    async with ClientSession() as session:
        async with session.post(url=URL, data=form_data) as r:
            result = str(r.url).replace('https://', '')
            return result