Update telethon/events/common.py

Co-Authored-By: JosXa <joscha.goetzer@gmail.com>
This commit is contained in:
Lonami 2018-10-25 17:27:48 +02:00 committed by GitHub
parent 9672b3ecfb
commit 1267efdc7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,8 @@ class EventBuilder(abc.ABC):
@client.on(events.NewMessage(func=lambda e: e.is_private)) @client.on(events.NewMessage(func=lambda e: e.is_private))
async def handler(event): async def handler(event):
# Access the result of func # Access the result of func. You don't actually need the assert,
# this is just an example showcasing how to access the result.
assert event.func_result is True assert event.func_result is True
""" """
self_id = None self_id = None