code: def split_message(message, max_length):
      
      ms = []
      while len(message) > max_length:
          ms.append(message[:max_length])
          message = message[max_length:]
      ms.append(message)
      return ms
docs: Split large message into smaller messages each smaller than the max_length.