From 9e8f476d124ae81b0434e17cd6fdb13d981e06ae Mon Sep 17 00:00:00 2001 From: Jinwei Zhao Date: Tue, 31 Jan 2017 21:50:48 +0800 Subject: delete useless --- async_test.py | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 async_test.py diff --git a/async_test.py b/async_test.py deleted file mode 100644 index 41f5cd7..0000000 --- a/async_test.py +++ /dev/null @@ -1,25 +0,0 @@ -''' -import aiohttp -import asyncio -import async_timeout - -async def fetch(session, url): - with async_timeout.timeout(10): - async with session.get(url) as response: - return await response.text() - -async def main(loop): - async with aiohttp.ClientSession(loop=loop) as session: - html = await fetch(session, 'http://python.org') - print(html) - -loop = asyncio.get_event_loop() -loop.run_until_complete(main(loop)) -''' - - -import telegram - -bot = telegram.Bot('243806890:AAEFw0bAA2E5hkxtprb7qGM7mZSlcevQs4Y') - -bot.sendMessage(chat_id='-1001052481058', text="Hello") \ No newline at end of file -- cgit v1.2.3