We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21af060 commit 3ec618dCopy full SHA for 3ec618d
rtmbot/core.py
@@ -122,6 +122,9 @@ def output(self):
122
if destination.startswith('U'):
123
result = json.loads(self.slack_client.api_call('im.open', user=destination))
124
channel = self.slack_client.server.channels.find(result[u'channel'][u'id'])
125
+ elif destination.startswith('G'):
126
+ result = json.loads(self.slack_client.api_call('groups.open'), channel=destination))
127
+ channel = self.slack_client.server.channels.find(result[u'channel'][u'id'])
128
else:
129
channel = self.slack_client.server.channels.find(destination)
130
if channel != None and message != None:
0 commit comments