This commit is contained in:
Joscha Götzer 2018-03-24 11:12:58 +00:00 committed by GitHub
commit 1c59401a49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,8 +41,8 @@ Creating a client
client.start() client.start()
Doing stuff Working with Telethon
----------- ---------------------
.. code:: python .. code:: python
@ -56,6 +56,18 @@ Doing stuff
client.download_media(messages[0]) client.download_media(messages[0])
Responding to events
--------------------
.. code:: python
from telethon import events
@client.on(events.NewMessage(incoming=True))
def echo(event):
event.reply(event.text)
Next steps Next steps
---------- ----------