This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import aiohttp | |
import json | |
async def main(): | |
async with aiohttp.ClientSession() as session: | |
n = (await (await session.get("https://xkcd.com/info.0.json")).json())["num"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyrogram import Client | |
import time | |
app = Client("...") | |
async def main(): | |
async with app: | |
m = await app.send_message("pyrogramchat", "uploading 1500 MB...") | |
s = time.time() |
OlderNewer