Let me explain: I want to write a script for Teamspeak in python and i want to send splitted text messages. This is the code i got so far:
msg = [msg[i:i + 1024] for i in range(0, len(msg), 1024)]
for message in msg: ts3lib.requestSendPrivateTextMsg(schid, "{0}".format(message), clientID)
Please note that teamspeak's maximal character limit is 1024. but not really since some chars like ♠ use 3 chars of the character limit.
So what i want is to have it check where it would split at 1024 chars then go back to the last \n or . and split there.