Skip to content

Commit 13271bd

Browse files
kt5356Roach
authored andcommitted
Fix rtm_send_message bug (#225)
1 parent ffc6e00 commit 13271bd

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
@@ -159,7 +159,7 @@ def rtm_send_message(self, channel, message, thread=None, reply_broadcast=None):
159159
# name and an attempt is made to find the ID in the workspace state cache.
160160
# If that lookup fails, the argument is used as the channel ID.
161161
found_channel = self.server.channels.find(channel)
162-
channel_id = found_channel.id if found_channel.id else channel
162+
channel_id = found_channel.id if found_channel else channel
163163
return self.server.rtm_send_message(
164164
channel_id,
165165
message,

0 commit comments

Comments
 (0)