19 lines
468 B
Plaintext
19 lines
468 B
Plaintext
|
#!/usr/bin/python3
|
||
|
import telegram
|
||
|
import fileinput
|
||
|
import asyncio
|
||
|
|
||
|
async def run():
|
||
|
text = "Vault Etienne:\n\n"
|
||
|
for line in fileinput.input():
|
||
|
text += line
|
||
|
|
||
|
bot = telegram.Bot(token="381718873:AAElFmI2BDjumCehhWicuksE0vutrPSkoGA")
|
||
|
chat_id = 125754925
|
||
|
await bot.send_message(chat_id, text)
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
loop = asyncio.get_event_loop()
|
||
|
loop.run_until_complete(asyncio.wait([loop.create_task(run())]))
|
||
|
loop.close()
|