Skip to content

Instantly share code, notes, and snippets.

@stevedep
Created January 8, 2023 07:09
Show Gist options
  • Save stevedep/2cc9dace32ff8050db40e75ae4643b55 to your computer and use it in GitHub Desktop.
Save stevedep/2cc9dace32ff8050db40e75ae4643b55 to your computer and use it in GitHub Desktop.
import sys
sys.path.append('/home/odroid/Documents/WhatsApp')
import wy #please note you need to specify the path above, or import from a folder that is known.
#you need this one with crontab else you get error, process closed unexpectedly
from pyvirtualdisplay import Display
display = Display(visible=0, size=(2880, 1800)).start()
message = (sys.argv[1])
gr = (sys.argv[2])
wy.send_message(msg=message, t="s", group=gr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment