fix for preview link
link preview was not working as it should (show url info above message) here I bring a small solution for that, and also a better formatting of the file.
Pelo menos aqui nunca vi funcionar a função de link preview, pelo contrario, quando iria enviar uma mensagem mencionando alguns membros, a menção não funcionava corretamente.
Pelo menos aqui nunca vi funcionar a função de link preview, pelo contrario, quando iria enviar uma mensagem mencionando alguns membros, a menção não funcionava corretamente.
give me an example of how you are doing the sending, you are using the example: sock.sendMessage(jid, { text: text, mentions: [jids] }) ?
uso assim: sock.sendMessage(id, { text: text, contextInfo: { mentionedJid: [mentions] } });
uso assim: sock.sendMessage(id, { text: text, contextInfo: { mentionedJid: [mentions] } });
there is no longer this "mentionedJid" in the submission, and it is not necessary to apply the "contextInfo" to use the mentions, use the way I gave you as an example...
Que legal!
well done, thx
god help
Changing the file formatting does not "solve" the problem. I'm using it perfectly and it's not having any problems. So I don't think changes should be made.
Maybe you haven't installed link-preview-js. Because the function requires the same.
Try installing by: npm i link-preview-js or yarn add link-preview-js
Changing the file formatting does not "solve" the problem. I'm using it perfectly and it's not having any problems. So I don't think changes should be made.
Changing the file formatting does not "solve" the problem. I'm using it perfectly and it's not having any problems. So I don't think changes should be made.
if you look closer you will see that the formatting is just an append, the real change was in the "urlInfo"
Maybe you haven't installed link-preview-js. Because the function requires the same.
Try installing by: npm i link-preview-js or yarn add link-preview-js
we tried this way and it continued without showing preview link.
Many users are reporting on this issue in groups and communities, for some it works normally but for many it has been causing stress, I know people who chose to use external modules to achieve good performance, I think it is important to fix this error for us not need to go after external modules and adaptations😔
Many users are reporting on this issue in groups and communities, for some it works normally but for many it has been causing stress, I know people who chose to use external modules to achieve good performance, I think it is important to fix this error for us not need to go after external modules and adaptations😔
this is real, and i bring this brief solution.
I know that for some this module is working perfectly, but man even downloading and reevaluating the modules and updating it doesn't work, and that's annoying I waste the time I would have to develop new commands in adding a new external module and adapting it, "nobody deserve"
I know that for some this module is working perfectly, but man even downloading and reevaluating the modules and updating it doesn't work, and that's annoying I waste the time I would have to develop new commands in adding a new external module and adapting it, "nobody deserve"
it's really quite annoying even having to install external modules to "generate" a preview link, which should work perfectly for 100% of users.
and that's why I bring the solution for everyone.
no explicit workaround was done in the file. Only the formatting was witnessed in it. Be clear when submitting a PR.
Example: await sock.sendMessage(id, { text: 'Hi, this was sent using https://github.com/adiwajshing/baileys' })
Link preview works fine for me as well, like it does for @viniciusgdr. Quickly checking open issues, there doesn't seem to be any related to link preview not working.
Also when making prs; make them clear. Don't just smash bunch of unnecessary formatting (which I don't think is needed) along your edit. It's a pain in the ass to review or even try to find what you tried to edit with the 'hint' you gave.
Also please use English as not everyone knows your language.
no explicit workaround was done in the file. Only the formatting was witnessed in it. Be clear when submitting a PR.
Example: await sock.sendMessage(id, { text: 'Hi, this was sent using https://github.com/adiwajshing/baileys' })
Ok, soon I will close this pull to open another one with only the change, without the formatting of the file so as not to confuse other people as it confused you.
ink preview works fine for me as well, like it does for @viniciusgdr. Quickly checking open issues, there doesn't seem to be any related to link preview not working.
Also when making prs; make them clear. Don't just smash bunch of unnecessary formatting (which I don't think is needed) along your edit. It's a pain in the ass to review or even try to find what you tried to edit with the 'hint' you gave.
Also please use English as not everyone knows your language.
@SheIITear is it good like this?
no explicit workaround was done in the file. Only the formatting was witnessed in it. Be clear when submitting a PR. Example: await sock.sendMessage(id, { text: 'Hi, this was sent using https://github.com/adiwajshing/baileys' })
Ok, soon I will close this pull to open another one with only the change, without the formatting of the file so as not to confuse other people as it confused you.
@SheIITear it's better this way?
There is no reason to change what is already working. Be clear. Submit Evidence, Clear Arguments.
I use it on many occasions for several important things, no problems were seen in my tests in the last hour.
Talvez você não tenha instalado link-preview-js. Porque a função requer o mesmo.
Tente instalar por: npm i link-preview-js ou yarn add link-preview-js
Eu instalei o link-preview e ainda assim não foi aqui.
So... All the major changes that you did were on the code formatting? Link preview works fine for me, how it also works for @SheIITear and @viniciusgdr. Also, I tested the occasions where the error supposedly happens, and it's just a lack of a module that the repository documentation specifies. Try reading it next time.
nesse navegador aqui tem a opção de traduzir a pagina não acho que o fato de usar o português implique em algo.
Então... Todas as principais mudanças que você fez foram na formatação do código? A visualização do link funciona bem para mim, como também funciona para@SheIITeare@viniciusgdr.
Eu não vi uma mudança drástica no codigo que foi apresentado, acho que o problema é outra coisa, aqui, mesmo tendo o link-preview instalado não gera as informações do url na mensagem.
Então... Todas as principais mudanças que você fez foram na formatação do código? A visualização do link funciona bem para mim, como também funciona para@SheIITeare@viniciusgdr.
Eu não vi uma mudança drástica no codigo que foi apresentado, acho que o problema é outra coisa, aqui, mesmo tendo o link-preview instalado não gera as informações do url na mensagem.
Then it may be a problem in your code...
Então... Todas as principais mudanças que você fez na formatação do código? A visualização do link funciona bem para mim, como também funciona para@SheIITeare@viniciusgdr.
Eu não vi uma mudança drástica no código que foi apresentado, acho que o problema é outra coisa, aqui, mesmo tendo o link-preview instalado não gera as informações do url na mensagem.
Então pode ser um problema no seu código...
Talvez possa ser, mais no caso, isso parece acontecer com outras pessoas
Okay, I updated the pull.
Okay, I updated the pull.
You didn't changed anything m8
ou didn't changed anything m8
wait, it's on "pending"...