You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 11, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 11, 2025. It is now read-only.
Hello,
First thank you for such nice project it is really great,
before I was using Skype4Py for sending SMS for Pethospital appointment, I was hopping there is same feature in SkPy
I have tried the web.skype.com and it allows it, so should be possible
Not at present -- I don't have Skype SMS set up on my account, so I'm unsure what any of the API calls look like.
If you're able to do it from Skype for Web and track the HTTP requests it makes, we can look into reproducing it here, though it may be tricky to test locally.
When you have skype credit you can call or sms a phone number. same windows as chat.
Ok. For what can see in google developer tools in network tab there are several exchanges . I will try to isolate the communication process and understand how skpy works
If you can successfully send a message with the latter but not the former, please get a sample HTTP request from your browser so we can tell what it's doing differently. Without that I don't know what needs to change.
Se você conseguir enviar uma mensagem com o último, mas não com o primeiro, obtenha um exemplo de solicitação HTTP de seu navegador para que possamos saber o que está fazendo de diferente. Sem isso, não sei o que precisa mudar.
I checked the request on the web and tried to reproduce it on SkyPy the request creates the chat with the number and sends the sms but after a few seconds it gets the message as in the photo above you want it to send as is the headers, body and which endpoint make the requisition?
I don't have the Skype credit or a subscription to test this with, so this won't go anywhere unless someone can reliably reproduce a working Skype for Web request for sending an SMS using SkPy, like the one I proposed above.
It's a request to client-s.gateway.messenger.live.com and they're fairly standardised, so hopefully it doesn't depend on unusual parameters to work. SkypeChat.sendRaw() will do a POST request to the right URL (sending an SMS appears to use the same endpoint as a regular Skype message), with kwargs becoming the message body, so it should just be a case of finding the right combination of parameters.
I was able to send SMS using sendRaw and this template below once I already had a chat for a given phone number. In case the chat's ID is something like 4:+1123456789 and the phone number is +1123456789 this request worked for with a random UUID as the request_id:
Activity
Terrance commentedon Oct 11, 2018
Not at present -- I don't have Skype SMS set up on my account, so I'm unsure what any of the API calls look like.
If you're able to do it from Skype for Web and track the HTTP requests it makes, we can look into reproducing it here, though it may be tricky to test locally.
luc-github commentedon Oct 11, 2018
When you have skype credit you can call or sms a phone number. same windows as chat.
Ok. For what can see in google developer tools in network tab there are several exchanges . I will try to isolate the communication process and understand how skpy works
jeffersonveloso commentedon Feb 26, 2021
Any news about this demand?
Terrance commentedon Feb 26, 2021
My request above still stands, as I've not touched Skype since then, let alone the SMS parts.
jeffersonveloso commentedon Feb 26, 2021
I can even create the chat and send an sms but after a few seconds it appears in the sms above the delivery failed, I don't know what it can be.

Terrance commentedon Feb 26, 2021
With SkPy, or in Skype for Web?
If you can successfully send a message with the latter but not the former, please get a sample HTTP request from your browser so we can tell what it's doing differently. Without that I don't know what needs to change.
jeffersonveloso commentedon Feb 26, 2021
I checked the request on the web and tried to reproduce it on SkyPy the request creates the chat with the number and sends the sms but after a few seconds it gets the message as in the photo above you want it to send as is the headers, body and which endpoint make the requisition?
Terrance commentedon Feb 26, 2021
All of the above, same as what you'd get using
SKPY_DEBUG_HTTP=1with SkPy.jeffersonveloso commentedon Feb 26, 2021
The parameter requestId is a str(uuid4()).
Terrance commentedon Feb 26, 2021
You've leaked your tokens in there, best logout that session ASAP.
So there's a few things going on here that probably want handling:
4RichText/Smsalong with a specific HTML structureDoes this work? (replacing +441234567890 with an actual contact's number)
If not, does it work with the entire content line you quoted above?
jeffersonveloso commentedon Feb 26, 2021
The test created the message just like in my tests here but the sms is not sent for some reason.
Terrance commentedon Feb 27, 2021
Even with the full HTML message content?
jeffersonveloso commentedon Mar 2, 2021
Yes, i try with the full HTML message content and not worked
WaseemYoussef commentedon Mar 10, 2021
would be great if you can add reading/writing sms to this great project
Terrance commentedon Mar 11, 2021
I don't have the Skype credit or a subscription to test this with, so this won't go anywhere unless someone can reliably reproduce a working Skype for Web request for sending an SMS using SkPy, like the one I proposed above.
It's a request to
client-s.gateway.messenger.live.comand they're fairly standardised, so hopefully it doesn't depend on unusual parameters to work.SkypeChat.sendRaw()will do a POST request to the right URL (sending an SMS appears to use the same endpoint as a regular Skype message), withkwargsbecoming the message body, so it should just be a case of finding the right combination of parameters.beepsoft commentedon Dec 12, 2024
I was able to send SMS using
sendRawand this template below once I already had a chat for a given phone number. In case the chat's ID is something like4:+1123456789and the phone number is+1123456789this request worked for with a random UUID as therequest_id:I actually have this in code: