from .. import types, alltlobjects
from ..custom.message import Message as _Message

class MessageEmpty(_Message, types.MessageEmpty):
    pass

types.MessageEmpty = MessageEmpty
alltlobjects.tlobjects[MessageEmpty.CONSTRUCTOR_ID] = MessageEmpty

class MessageService(_Message, types.MessageService):
    pass

types.MessageService = MessageService
alltlobjects.tlobjects[MessageService.CONSTRUCTOR_ID] = MessageService

class _Message(_Message, types.Message):
    pass

Message = _Message
types.Message = Message

from .. import types, alltlobjects
from ..custom.message import Message as _Message

class MessageEmpty(_Message, types.MessageEmpty):
    pass

types.MessageEmpty = MessageEmpty
alltlobjects.tlobjects[MessageEmpty.CONSTRUCTOR_ID] = MessageEmpty

class MessageService(_Message, types.MessageService):
    pass

types.MessageService = MessageService
alltlobjects.tlobjects[MessageService.CONSTRUCTOR_ID] = MessageService

class Message(_Message, types.Message):
    pass

types.Message = Message
alltlobjects.tlobjects[Message.CONSTRUCTOR_ID] = Message

Fix definition typo in patched module
Fix definition typo in patched module

  from .. import types, alltlobjects
  from ..custom.message import Message as _Message
  
  class MessageEmpty(_Message, types.MessageEmpty):
      pass
  
  types.MessageEmpty = MessageEmpty
  alltlobjects.tlobjects[MessageEmpty.CONSTRUCTOR_ID] = MessageEmpty
  
  class MessageService(_Message, types.MessageService):
      pass
  
  types.MessageService = MessageService
  alltlobjects.tlobjects[MessageService.CONSTRUCTOR_ID] = MessageService
  
- class _Message(_Message, types.Message):
+ class Message(_Message, types.Message):
      pass
  
- Message = _Message
  types.Message = Message
+ alltlobjects.tlobjects[Message.CONSTRUCTOR_ID] = Message
  
Fix definition typo in patched module
## Code Before:
from .. import types, alltlobjects
from ..custom.message import Message as _Message

class MessageEmpty(_Message, types.MessageEmpty):
    pass

types.MessageEmpty = MessageEmpty
alltlobjects.tlobjects[MessageEmpty.CONSTRUCTOR_ID] = MessageEmpty

class MessageService(_Message, types.MessageService):
    pass

types.MessageService = MessageService
alltlobjects.tlobjects[MessageService.CONSTRUCTOR_ID] = MessageService

class _Message(_Message, types.Message):
    pass

Message = _Message
types.Message = Message

## Instruction:
Fix definition typo in patched module
## Code After:
from .. import types, alltlobjects
from ..custom.message import Message as _Message

class MessageEmpty(_Message, types.MessageEmpty):
    pass

types.MessageEmpty = MessageEmpty
alltlobjects.tlobjects[MessageEmpty.CONSTRUCTOR_ID] = MessageEmpty

class MessageService(_Message, types.MessageService):
    pass

types.MessageService = MessageService
alltlobjects.tlobjects[MessageService.CONSTRUCTOR_ID] = MessageService

class Message(_Message, types.Message):
    pass

types.Message = Message
alltlobjects.tlobjects[Message.CONSTRUCTOR_ID] = Message
