We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 965403d + 6626ca4 commit a3e3262Copy full SHA for a3e3262
cm_text/message.py
@@ -15,7 +15,8 @@ class Message:
15
def __init__(self, body='', **kwargs):
16
self.body = body
17
self.type = kwargs.get('type', MessageBodyTypes.AUTO)
18
- self.from_ = kwargs.get('from', self.sender_fallback)
+ # 'from' is a Python keyword, used in imports, therefore using 'from_'
19
+ self.from_ = kwargs.get('from_', self.sender_fallback)
20
self.to = kwargs.get('to', [])
21
self.reference = kwargs.get('reference')
22
self.allowedChannels = kwargs.get('allowedChannels')
0 commit comments