MCPcopy Create free account
hub / github.com/slackapi/python-slack-sdk / send_reply

Method send_reply

integration_tests/rtm/test_issue_631.py:77–89  ·  view source on GitHub ↗
(**payload)

Source from the content-addressed store, hash-verified

75 # Solution (1) for #631
76 @RTMClient.run_on(event="message")
77 def send_reply(**payload):
78 self.logger.debug(payload)
79 data = payload["data"]
80 web_client = payload["web_client"]
81
82 try:
83 if "text" in data and self.text in data["text"]:
84 channel_id = data["channel"]
85 thread_ts = data["ts"]
86 self.success = web_client.chat_postMessage(channel=channel_id, text="Thanks!", thread_ts=thread_ts)
87 except Exception as e:
88 self.logger.error(traceback.format_exc())
89 raise e
90
91 def connect():
92 self.logger.debug("Starting RTM Client...")

Callers

nothing calls this directly

Calls 2

debugMethod · 0.45
chat_postMessageMethod · 0.45

Tested by

no test coverage detected