Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message class initializer shadows header Content as received by ReceivedSMS event #120

Open
LukasMojzis opened this issue Aug 3, 2024 · 0 comments

Comments

@LukasMojzis
Copy link

The contents of SMS is ''. I have resolved this by monkey patching the Message.init

from panoramisk import Message

def patched_init(self, headers, content=''):
    super(Message, self).__init__(content=content, **headers)
    self.manager = None

Message.__init__ = patched_init

Don't know what else it impacts but I can submit a pull request if it doesn't break Message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant