Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

Add thread_ts argument for chat.postMessage method. #101

Merged
merged 1 commit into from
May 15, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions slacker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ class Chat(BaseAPI):
def post_message(self, channel, text=None, username=None, as_user=None,
parse=None, link_names=None, attachments=None,
unfurl_links=None, unfurl_media=None, icon_url=None,
icon_emoji=None):
icon_emoji=None, thread_ts=None):

# Ensure attachments are json encoded
if attachments:
Expand All @@ -287,7 +287,8 @@ def post_message(self, channel, text=None, username=None, as_user=None,
'unfurl_links': unfurl_links,
'unfurl_media': unfurl_media,
'icon_url': icon_url,
'icon_emoji': icon_emoji
'icon_emoji': icon_emoji,
'thread_ts': thread_ts
})

def me_message(self, channel, text):
Expand Down