def make_message(self, text, channel):
try:<EOL><INDENT>channel_id = self.slack.channel_from_name(channel)['<STR_LIT:id>']<EOL><DEDENT>except ValueError:<EOL><INDENT>channel_id = channel<EOL><DEDENT>return pack({<EOL>'<STR_LIT:text>': text,<EOL>'<STR_LIT:type>': '<STR_LIT:message>',<EOL>'<STR_LIT>': channel_id,<EOL>'<STR_LIT:id>': self.message_id,<EOL>})<EOL>
High-level function for creating messages. Return packed bytes.

Args:
    text: {str}
    channel: {str} Either name or ID