Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

Nickwasused/signal-cli-socket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

signal-cli-socket

Use with https://github.com/AsamK/signal-cli

Example Code

from signal-cli-socket import signal

sig = Signal("+491635558756")

# send message to a user
sig.send_message("+491625555457", "Hello there!")
sig.send_message_attatchment("+491625555457", "Here is the picture that you wanted.", "./photo.jpg")

# send messages to a group
sig.send_message("KBHvLSJlKKb8FQSA6Ajo5pB8/mgPjaTEbr68Mb5MwkA=", "Hello there!", True)
sig.send_message_attatchment("KBHvLSJlKKb8FQSA6Ajo5pB8/mgPjaTEbr68Mb5MwkA=", "Enjoy the view!", "./photo.jpg", True)

Signal Object

Parameter Type required default value
account string yes
socket_path string no /tmp/signal-cli/socket
id int no random value
Option Description
send_message() Send a Message to a User or a group
send_message_attatchment() Send a Message to a User or a group with an attachment