@staticmethod
def split_text(text, part_length, signature, continue_text=
    """

--- continued below ---""", split_char='\n'):
    """
        Split a text into several parts. Attach signature to every message and an info regarding the split to every
        message except the last.
        :param text: text which should be splitted
        :param part_length: maximum amount of characters per part
        :param signature: signature which should be present on every part
        :param continue_text: info regarding the split, present on every part except the last
        :param split_char: character on which the split should be determined on
        :return: list of parts
        """
    extra_length = len(signature) + len(continue_text)
    parts = []
    while True:
        if len(text) <= 0:
            return parts
        content_parts = text.split(split_char)
        stitched_content = ''
        for part in content_parts:
            if len(stitched_content) + len(part + split_char
                ) + extra_length <= part_length:
                stitched_content += part + split_char
            else:
                break
        if text[len(stitched_content):] == '':
            parts.append(stitched_content + signature)
        else:
            parts.append(stitched_content + continue_text + signature)
        text = text[len(stitched_content):]
