1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00
royalnet/basicbot.py

11 lines
211 B
Python
Raw Normal View History

2017-02-27 22:16:42 +00:00
import asyncio
loop = asyncio.get_event_loop()
import telegram
b = telegram.Bot("ciao pizza")
async def print_message(bot, update):
print(update.message.content)
b.commands["echo"] = print_message
b.run()