from .client.telegramclient import TelegramClient
from .network import connection
from .tl import types, functions, custom
from .tl.custom import Button
from . import version, events, utils, errors

__version__ = version.__version__

__all__ = [
    'TelegramClient', 'Button',
    'types', 'functions', 'custom', 'errors',
    'events', 'utils', 'connection'
]

from .client.telegramclient import TelegramClient
from .network import connection
from .tl import types, functions, custom
from .tl.custom import Button
from .tl import patched as _  # import for its side-effects
from . import version, events, utils, errors

__version__ = version.__version__

__all__ = [
    'TelegramClient', 'Button',
    'types', 'functions', 'custom', 'errors',
    'events', 'utils', 'connection'
]

Fix patched module was never automatically imported
Fix patched module was never automatically imported

Closes #1701. It has to be imported late in the process of
`import telethon` for its side-effects.

  from .client.telegramclient import TelegramClient
  from .network import connection
  from .tl import types, functions, custom
  from .tl.custom import Button
+ from .tl import patched as _  # import for its side-effects
  from . import version, events, utils, errors
  
  __version__ = version.__version__
  
  __all__ = [
      'TelegramClient', 'Button',
      'types', 'functions', 'custom', 'errors',
      'events', 'utils', 'connection'
  ]
  
Fix patched module was never automatically imported
## Code Before:
from .client.telegramclient import TelegramClient
from .network import connection
from .tl import types, functions, custom
from .tl.custom import Button
from . import version, events, utils, errors

__version__ = version.__version__

__all__ = [
    'TelegramClient', 'Button',
    'types', 'functions', 'custom', 'errors',
    'events', 'utils', 'connection'
]

## Instruction:
Fix patched module was never automatically imported
## Code After:
from .client.telegramclient import TelegramClient
from .network import connection
from .tl import types, functions, custom
from .tl.custom import Button
from .tl import patched as _  # import for its side-effects
from . import version, events, utils, errors

__version__ = version.__version__

__all__ = [
    'TelegramClient', 'Button',
    'types', 'functions', 'custom', 'errors',
    'events', 'utils', 'connection'
]
