mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Replace .to_bytes() with the special .__bytes__ function
This commit is contained in:
@@ -125,7 +125,7 @@ class TLObject:
|
||||
def to_dict(self, recursive=True):
|
||||
return {}
|
||||
|
||||
def to_bytes(self):
|
||||
def __bytes__(self):
|
||||
return b''
|
||||
|
||||
@staticmethod
|
||||
|
Reference in New Issue
Block a user