djangobot/client.py
def make_message(self, text, channel):
        """
        High-level function for creating messages. Return packed bytes.

        Args:
            text: {str}
            channel: {str} Either name or ID
        """
        try:
            channel_id = self.slack.channel_from_name(channel)['id']
        except ValueError:
            channel_id = channel
        return pack({
            'text': text,
            'type': 'message',
            'channel': channel_id,
            'id': self.message_id,
        })
def make_message(self, text, channel):
        try:
            channel_id = self.slack.channel_from_name(channel)['id']
        except ValueError:
            channel_id = channel
        return pack({
            'text': text,
            'type': 'message',
            'channel': channel_id,
            'id': self.message_id,
        })
def make_message ( self , text , channel ) : try : channel_id = self . slack . channel_from_name ( channel ) [ 'id' ] except ValueError : channel_id = channel return pack ( { 'text' : text , 'type' : 'message' , 'channel' : channel_id , 'id' : self . message_id , } )
High-level function for creating messages. Return packed bytes.

        Args:
            text: {str}
            channel: {str} Either name or ID
High - level function for creating messages . Return packed bytes .