blob: 56b826150e838d818e2f5cf0ebc1ff660030164f (
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
|