Prince-Mendiratta / BotsApp

Your personal assistant, on WhatsApp! The most user friendly userbot for the platform!
GNU General Public License v3.0
5.5k stars 1.27k forks source link

Message with linebreaks in .tagall is repeated by bot without linebreaks. #138

Closed GTMoraes closed 1 year ago

GTMoraes commented 2 years ago

Using the .tagall to make the BotsApp repeat a message with linebreaks will be answered with the corresponding message written in a single line.

Example: image

Image transcript: Expected message would be:

πŸ˜€Hello folks! This is an example message. 🌹 In this example, a message will be written with a couple of break lines of varying styles πŸ‘‰ It could be just a single line break.

➑️ But also a whole new paragraph, depending on the need. ❄️ Emoji presence sometimes is expected, but is used here to just signify where a new line should have had begun

❀️ On the console, the \n seems to be correctly parsed πŸ’” But for some reason or another, it is not correctly interpreted by the bot

🎯 Hope this bug is fixed soon! πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€

Actual result:

πŸ˜€Hello folks! This is an example message. 🌹 In this example, a message will be written with a couple of break lines of varying styles πŸ‘‰ It could be just a single line break. ➑️ But also a whole new paragraph, depending on the need. ❄️ Emoji presence sometimes is expected, but is used here to just signify where a new line should have had begun ❀️ On the console, the \n seems to be correctly parsed πŸ’” But for some reason or another, it is not correctly interpreted by the bot 🎯 Hope this bug is fixed soon! πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€

On the command line, it seems that the script actually parses it correctly, but the bot fails to properly write the message the way it should've

Console