basically, i'm sending one message to chat API
// $n->mensagem = Lembre-me, contrato 156051 \n \n\n mensagem: \naaaaaa
$mensagem = $n->mensagem . " \n\n\naaaa";
app(Rocketchat::class)->sendMessage(
$n->getAlvo(),
$mensagem
);
and the result impress is:
Lembre-me, contrato 156051 \n \n\n mensagem: \naaaaaa
aaaa
only the concatened "\n" worked, how can i fix that?
i tried to search for some responses in the internet and all i get is the nl2br but this don't work in my case
i just found the response, i don't know exactly why, but if you replace '\n' by "\n" it will work
doing this the message was printed like