leogomezz4t / PyTextNow_API

Python texting API utilizing TextNow API
MIT License
67 stars 41 forks source link

Issue Sending Messages #47

Closed kwang38 closed 2 years ago

kwang38 commented 2 years ago

I am having issues trying to send someone a message with the new line character (\n).

For example, if the content of the message is "Hello World", the message gets sent. However, if the content of the message we want to send is "Hello\nWorld", then I get the following error message:

pytextnow.error.FailedRequest: Could not send message. server returned a Client error. Request Failed. Try resetting your authentication with client.auth_reset() Status Code: 400

leogomezz4t commented 2 years ago

Oh I'm sorry. I got this issue awhile ago and was in the middle of implementing a relatively easy fix but it hasn't been pushed yet. For now escape the backslash like this client.send_sms("Hello\\nWorld")

I'll leave this issue open and ping you once a proper fix has been implemented

leogomezz4t commented 2 years ago

@kwang38 Thanks to @wunter8 this bug has been fixed in the new 1.2.0 update