mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-06 05:00:23 +03:00
Update telethon/events/common.py
Co-Authored-By: JosXa <joscha.goetzer@gmail.com>
This commit is contained in:
parent
9672b3ecfb
commit
1267efdc7d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user