@@ -137,7 +137,7 @@ def list(self, roomId, mentionedPeople=None, before=None,
137
137
138
138
def create (self , roomId = None , toPersonId = None , toPersonEmail = None ,
139
139
text = None , markdown = None , files = None , attachments = None ,
140
- ** request_parameters ):
140
+ parentId = None , ** request_parameters ):
141
141
"""Post a message to a room.
142
142
143
143
The files parameter is a list, which accepts multiple values to allow
@@ -158,6 +158,8 @@ def create(self, roomId=None, toPersonId=None, toPersonEmail=None,
158
158
be posted into the room. Only one file is allowed per message.
159
159
attachments(list): Content attachments to attach to the message.
160
160
See the Cards Guide for more information.
161
+ parentId(basestring): The parent message to reply to. This will
162
+ start or reply to a thread.
161
163
**request_parameters: Additional request parameters (provides
162
164
support for parameters that may be added in the future).
163
165
@@ -179,6 +181,7 @@ def create(self, roomId=None, toPersonId=None, toPersonEmail=None,
179
181
check_type (markdown , basestring , optional = True )
180
182
check_type (files , list , optional = True )
181
183
check_type (attachments , list , optional = True )
184
+ check_type (parentId , basestring , optional = True )
182
185
183
186
if files :
184
187
if len (files ) > 1 :
@@ -209,6 +212,7 @@ def create(self, roomId=None, toPersonId=None, toPersonEmail=None,
209
212
markdown = markdown ,
210
213
files = files ,
211
214
attachments = attachments ,
215
+ parentId = parentId
212
216
)
213
217
214
218
# API request
0 commit comments