Group-signal-bridge/signal.py

19 lines
267 B
Python
Raw Normal View History

2024-04-19 22:17:30 +02:00
import subprocess
exe = "signal-cli"
def send(contacts, message):
subprocess.run([
exe,
"send",
*contacts,
"-m",
message
], encoding="utf-8")
def receive():
subprocess.run([
exe,
"receive"
])