Hi Sara,
I do not use WhatsApp. But I found, that you can use CallMeBot API for the SIGNAL Messenger as well. It is very easy to adopt the code for it and it works great.
Perhaps this will help some other persons.
Sencerely yours, Rzdolf
Hello Sara,
I have an improvement for the sketch to generate the URL encoded strings: I wrote a function to do this:
def string_to_url(s):
st = ''
for y in s:
z = y.encode('utf-8')
st = st + ''.join(['%{:02x}'.format(k) for k in z])
return(st)
So you do not have to go to the http://www.urlencoder.io site first.
Hope it will help.
Hi.
That’s great.
Thank you so much for sharing this.
I’ll probably update the code later to use that new feature.
Regards,
Sara
Hello,
I forgot that you need a
import binascii
to do this.
Also, all letters/numbers are converted to url format, so the abc becomes a %61%62%63, but this is not disturbing. The message is transmitted correctly by SIGNAL.
Greetings!