Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion slackclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def rtm_send_message(self, channel, message, thread=None, reply_broadcast=None):
# name and an attempt is made to find the ID in the workspace state cache.
# If that lookup fails, the argument is used as the channel ID.
found_channel = self.server.channels.find(channel)
channel_id = found_channel.id if found_channel.id else channel
channel_id = found_channel.id if found_channel else channel
return self.server.rtm_send_message(
channel_id,
message,
Expand Down