mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-16 19:41:07 +03:00
Add a new Raw Event
This commit is contained in:
parent
8786a52257
commit
f5eda72329
|
@ -102,6 +102,17 @@ class _EventCommon(abc.ABC):
|
|||
return self._chat
|
||||
|
||||
|
||||
class Raw(_EventBuilder):
|
||||
"""
|
||||
Represents a raw event. The event is the update itself.
|
||||
"""
|
||||
def resolve(self, client):
|
||||
pass
|
||||
|
||||
def build(self, update):
|
||||
return update
|
||||
|
||||
|
||||
# Classes defined here are actually Event builders
|
||||
# for their inner Event classes. Inner ._client is
|
||||
# set later by the creator TelegramClient.
|
||||
|
|
Loading…
Reference in New Issue
Block a user