mirror of
https://github.com/cdryzun/tg_bot_collections.git
synced 2026-01-14 05:14:23 +08:00
@@ -8,7 +8,7 @@ import re
|
||||
from . import *
|
||||
|
||||
|
||||
def split_lines(text, max_length=18):
|
||||
def split_lines(text, max_length=30):
|
||||
def split_line(line):
|
||||
punctuation = r"[,.!?;,。!?;]"
|
||||
parts = re.split(f"({punctuation})", line)
|
||||
|
||||
Reference in New Issue
Block a user