# Path: telethon_generator/utils.py
# def snake_to_camel_case(name, suffix=None):
#     # Courtesy of http://stackoverflow.com/a/31531797/4759433
#     result = re.sub(r'_([a-z])', lambda m: m.group(1).upper(), name)
#     result = result[:1].upper() + result[1:].replace('_', '')
#     return result + suffix if suffix else result


import re
import struct
import zlib
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: {'channel',  # Since layer 77, there seems to be no going back...
        'ipPortSecret', 'accessPointRule', 'help.configSimple'}

# Path: telethon_generator/utils.py
# def snake_to_camel_case(name, suffix=None):
#     # Courtesy of http://stackoverflow.com/a/31531797/4759433
#     result = re.sub(r'_([a-z])', lambda m: m.group(1).upper(), name)
#     result = result[:1].upper() + result[1:].replace('_', '')
#     return result + suffix if suffix else result


# Path: telethon_generator/parsers/tlobject/tlobject.py
import re
import struct
import zlib
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: {'channel',  # Since layer 77, there seems to be no going back...
        'ipPortSecret', 'accessPointRule', 'help.configSimple'}

}