Skip to content

Instantly share code, notes, and snippets.

@SKaplanOfficial
Last active November 15, 2022 01:32
Show Gist options
  • Save SKaplanOfficial/ba3b325417ae120dfa4d167ac141a0c9 to your computer and use it in GitHub Desktop.
Save SKaplanOfficial/ba3b325417ae120dfa4d167ac141a0c9 to your computer and use it in GitHub Desktop.
Using PyXA to send an SMS to a chat based on the chat ID
# Tested with PyXA 0.1.0
import PyXA
app = PyXA.Application("Messages")
chat = app.chats().by_id("SMS;-;+11234567891")
chat.send("Hello!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment