mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
11 lines
No EOL
211 B
Python
11 lines
No EOL
211 B
Python
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() |