code: def split_message(message, max_length):
      
      if len(message) > max_length:
          for message in textwrap.wrap(message, max_length):
              yield message
      else:
          yield message.rstrip(STRIPPED_CHARS)
docs: Split long messages