Skip to content

Commit 3c74510

Browse files
authored
Fixed rtm_send_message channel ID (#218)
1.0.8 broke `rtm_send_message`, this fixes it.
1 parent 5b13cba commit 3c74510

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slackclient/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def rtm_send_message(self, channel, message, thread=None, reply_broadcast=None):
156156
# The `channel` argument can be a channel name or an ID. At first its assumed to be a
157157
# name and an attempt is made to find the ID in the workspace state cache.
158158
# If that lookup fails, the argument is used as the channel ID.
159-
found_channel = self.server.channels.find(channel).id
159+
found_channel = self.server.channels.find(channel)
160160
channel_id = found_channel.id if found_channel.id else channel
161161
return self.server.rtm_send_message(
162162
channel_id,

0 commit comments

Comments
 (0)