multipleExplodeKeepDelimiters
This commit is contained in:
parent
c031d8bc44
commit
e404767a06
@ -452,7 +452,7 @@ trait BotAPI
|
|||||||
public function split_to_chunks($text)
|
public function split_to_chunks($text)
|
||||||
{
|
{
|
||||||
$total_length = 4096;
|
$total_length = 4096;
|
||||||
$text_arr = multipleExplodeKeepDelimiters(["\n"], $text);
|
$text_arr = $this->multipleExplodeKeepDelimiters(["\n"], $text);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$message[0] = '';
|
$message[0] = '';
|
||||||
foreach ($text_arr as $word) {
|
foreach ($text_arr as $word) {
|
||||||
|
Loading…
Reference in New Issue
Block a user