Apply fixes from StyleCI
This commit is contained in:
parent
1f18cf6ab9
commit
5eddc101dc
@ -218,8 +218,8 @@ while (true) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (\danog\MadelineProto\RPCErrorException $e) {}
|
} catch (\danog\MadelineProto\RPCErrorException $e) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
\danog\MadelineProto\Serialization::serialize('pipesbot.madeline', $MadelineProto);
|
\danog\MadelineProto\Serialization::serialize('pipesbot.madeline', $MadelineProto);
|
||||||
\danog\MadelineProto\Serialization::serialize('pwr.madeline', $uMadelineProto);
|
\danog\MadelineProto\Serialization::serialize('pwr.madeline', $uMadelineProto);
|
||||||
|
@ -470,8 +470,12 @@ trait BotAPI
|
|||||||
$text_arr = [];
|
$text_arr = [];
|
||||||
foreach ($this->multipleExplodeKeepDelimiters(["\n"], $text) as $word) {
|
foreach ($this->multipleExplodeKeepDelimiters(["\n"], $text) as $word) {
|
||||||
if (strlen($word) > 4096) {
|
if (strlen($word) > 4096) {
|
||||||
foreach (str_split($word, 4096) as $vv) { $text_arr []= $vv; }
|
foreach (str_split($word, 4096) as $vv) {
|
||||||
} else $text_arr []= $word;
|
$text_arr[] = $vv;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$text_arr[] = $word;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$message[0] = '';
|
$message[0] = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user