<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def transmit(self, channel, message):
 		""" 		Send the message to Slack. 		:param channel: channel or user to whom the message should be sent. 			If a ``thread`` attribute is present, that thread ID is used. 		:param str message: message to send. 		"""

		target = (
			self.slack.server.channels.find(channel)
			or self._find_user_channel(username=channel)
		)
		message = self._expand_references(message)

		target.send_message(message, thread=getattr(channel, 'thread', None))