Created
January 8, 2023 07:09
-
-
Save stevedep/2cc9dace32ff8050db40e75ae4643b55 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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