From 52b179dba80bf9073a8c1f73a5f31b74c190cb94 Mon Sep 17 00:00:00 2001 From: Lonami Date: Fri, 14 Dec 2018 17:31:15 +0100 Subject: [PATCH] Never check channel constructor when generating objects --- telethon_generator/parsers/tlobject/tlobject.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/telethon_generator/parsers/tlobject/tlobject.py b/telethon_generator/parsers/tlobject/tlobject.py index d94ed87c..616e28af 100644 --- a/telethon_generator/parsers/tlobject/tlobject.py +++ b/telethon_generator/parsers/tlobject/tlobject.py @@ -7,10 +7,9 @@ from ...utils import snake_to_camel_case # https://github.com/telegramdesktop/tdesktop/blob/4bf66cb6e93f3965b40084771b595e93d0b11bcd/Telegram/SourceFiles/codegen/scheme/codegen_scheme.py#L57-L62 WHITELISTED_MISMATCHING_IDS = { # 0 represents any layer - 0: {'ipPortSecret', 'accessPointRule', 'help.configSimple'} + 0: {'channel', # Since layer 77, there seems to be no going back... + 'ipPortSecret', 'accessPointRule', 'help.configSimple'} } -for i in range(77, 83): - WHITELISTED_MISMATCHING_IDS[i] = {'channel'} class TLObject: