(**payload)
| 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...") |
nothing calls this directly
no test coverage detected