slidgnal.generated.signal¶
Attributes¶
The event types handled by the overarching session adapter handler. |
|
The event types handled by the overarching session adapter handler. |
|
The event types handled by the overarching session adapter handler. |
|
The event types handled by the overarching session adapter handler. |
|
The event types handled by the overarching session adapter handler. |
|
The event types handled by the overarching session adapter handler. |
|
The event types handled by the overarching session adapter handler. |
|
The event types handled by the overarching session adapter handler. |
|
The event types handled by the overarching session adapter handler. |
|
The event types handled by the overarching session adapter handler. |
|
The message types handled by the overarching session event handler. |
|
The message types handled by the overarching session event handler. |
|
The message types handled by the overarching session event handler. |
|
The message types handled by the overarching session event handler. |
|
The delivery receipts handled by the overarching session event handler. |
|
The delivery receipts handled by the overarching session event handler. |
|
The delivery receipts handled by the overarching session event handler. |
|
The distinct typing states handled by the overarching session event handler. |
|
The distinct typing states handled by the overarching session event handler. |
Classes¶
GoClass is the base class for all GoPy wrapper classes |
|
GoClass is the base class for all GoPy wrapper classes |
|
EventKind represents all event types recognized by the Python session adapter, as emitted by the |
|
MessageKind represents all concrete message types (plain-text messages, edit messages, reactions) |
|
ReceiptKind represents the different types of delivery receipts possible in Signal. |
|
A TypingState represents different states of typing notificates for incoming and outgoing messages. |
|
A Message represents one of many kinds of bidirectional communication payloads, for example, a |
|
A Reaction is a quick, emoji response to an existing message. Signal generally allows only a |
|
A Receipt represents a notice of delivery or presentation for [Message] instances sent or |
|
A Session represents a connection to Signal under a given [Gateway]. In general, sessions are |
|
Typing contains event data related to typing notifications. |
|
ArchiveSync represents event data for initial synchronization of chat state during login. |
|
EventPayload represents the collected payloads for all event types handled by the overarching |
|
Login represents event data for login events, typically carrying QR code information used for |
|
A Reply represents a reference to a previous message being replied to, with partial data set. |
|
A Attachment represents any binary data provided alongside a [Message], for instance, an image |
|
A Avatar represents a small image set for a [Contact] or [Group]. |
|
A LinkedDevice represents a unique pairing session between the gateway and Signal. It is not |
|
Connect represents event data for connection events, typically carrying connection errors and |
|
A Contact represents any entity that be communicated with directly in Signal. This typically |
|
Delete represents a message deletion event, for any type of message. |
|
GoClass is the base class for all GoPy wrapper classes |
|
Logout represents event data for logout events, either expected (due to unlinking of a device) or |
Functions¶
|
NewSession(object g, object d) object |
NewGateway() object |
Module Contents¶
- class slidgnal.generated.signal.Slice_signal_Attachment(*args, **kwargs)[source]¶
Bases:
slidgnal.generated.go.GoClassGoClass is the base class for all GoPy wrapper classes
handle=A Go-side object is always initialized with an explicit handle=arg otherwise parameter is a python list that we copy from
- class slidgnal.generated.signal.Slice_signal_Contact(*args, **kwargs)[source]¶
Bases:
slidgnal.generated.go.GoClassGoClass is the base class for all GoPy wrapper classes
handle=A Go-side object is always initialized with an explicit handle=arg otherwise parameter is a python list that we copy from
- class slidgnal.generated.signal.EventKind(*args, **kwds)[source]¶
Bases:
enum.EnumEventKind represents all event types recognized by the Python session adapter, as emitted by the Go session adapter.
- slidgnal.generated.signal.EventUnknown = 0[source]¶
The event types handled by the overarching session adapter handler.
- slidgnal.generated.signal.EventLogin = 1[source]¶
The event types handled by the overarching session adapter handler.
- slidgnal.generated.signal.EventArchiveSync = 2[source]¶
The event types handled by the overarching session adapter handler.
- slidgnal.generated.signal.EventConnect = 3[source]¶
The event types handled by the overarching session adapter handler.
- slidgnal.generated.signal.EventLogout = 4[source]¶
The event types handled by the overarching session adapter handler.
- slidgnal.generated.signal.EventContact = 5[source]¶
The event types handled by the overarching session adapter handler.
- slidgnal.generated.signal.EventMessage = 6[source]¶
The event types handled by the overarching session adapter handler.
- slidgnal.generated.signal.EventTyping = 7[source]¶
The event types handled by the overarching session adapter handler.
- slidgnal.generated.signal.EventReceipt = 8[source]¶
The event types handled by the overarching session adapter handler.
- slidgnal.generated.signal.EventDelete = 9[source]¶
The event types handled by the overarching session adapter handler.
- class slidgnal.generated.signal.MessageKind(*args, **kwds)[source]¶
Bases:
enum.EnumMessageKind represents all concrete message types (plain-text messages, edit messages, reactions) recognized by the Python session adapter.
- slidgnal.generated.signal.MessagePlain = 0[source]¶
The message types handled by the overarching session event handler.
- slidgnal.generated.signal.MessageAttachment = 1[source]¶
The message types handled by the overarching session event handler.
- slidgnal.generated.signal.MessageReaction = 2[source]¶
The message types handled by the overarching session event handler.
- slidgnal.generated.signal.MessageEdit = 3[source]¶
The message types handled by the overarching session event handler.
- class slidgnal.generated.signal.ReceiptKind(*args, **kwds)[source]¶
Bases:
enum.EnumReceiptKind represents the different types of delivery receipts possible in Signal.
- slidgnal.generated.signal.ReceiptUnknown = 0[source]¶
The delivery receipts handled by the overarching session event handler.
- slidgnal.generated.signal.ReceiptDelivered = 1[source]¶
The delivery receipts handled by the overarching session event handler.
- slidgnal.generated.signal.ReceiptRead = 2[source]¶
The delivery receipts handled by the overarching session event handler.
- class slidgnal.generated.signal.TypingState(*args, **kwds)[source]¶
Bases:
enum.EnumA TypingState represents different states of typing notificates for incoming and outgoing messages.
- slidgnal.generated.signal.TypingStateStopped = 0[source]¶
The distinct typing states handled by the overarching session event handler.
- slidgnal.generated.signal.TypingStateStarted = 1[source]¶
The distinct typing states handled by the overarching session event handler.
- class slidgnal.generated.signal.Message(*args, **kwargs)[source]¶
Bases:
slidgnal.generated.go.GoClassA Message represents one of many kinds of bidirectional communication payloads, for example, a text message, a file (image, video) attachment, an emoji reaction, etc. Messages of different kinds are denoted as such, and re-use fields where the semantics overlap.
handle=A Go-side object is always initialized with an explicit handle=arg otherwise parameters can be unnamed in order of field names or named fields in which case a new Go object is constructed first
- class slidgnal.generated.signal.Reaction(*args, **kwargs)[source]¶
Bases:
slidgnal.generated.go.GoClassA Reaction is a quick, emoji response to an existing message. Signal generally allows only a single reaction to messages, and has special rules around removal of reactions.
handle=A Go-side object is always initialized with an explicit handle=arg otherwise parameters can be unnamed in order of field names or named fields in which case a new Go object is constructed first
- class slidgnal.generated.signal.Receipt(*args, **kwargs)[source]¶
Bases:
slidgnal.generated.go.GoClassA Receipt represents a notice of delivery or presentation for [Message] instances sent or received. Receipts can be delivered for many messages at once, but are generally all delivered under one specific state at a time.
handle=A Go-side object is always initialized with an explicit handle=arg otherwise parameters can be unnamed in order of field names or named fields in which case a new Go object is constructed first
- class slidgnal.generated.signal.Session(*args, **kwargs)[source]¶
Bases:
slidgnal.generated.go.GoClassA Session represents a connection to Signal under a given [Gateway]. In general, sessions are inactive until [Session.Login] is called and out-of-band registration is completed, in which case our internal event handlers will attempt to propagate any incoming events. Calls to session functions, such as [Session.GetContacts], will return an error immediately if the session is not active and authenticated.
handle=A Go-side object is always initialized with an explicit handle=arg otherwise parameters can be unnamed in order of field names or named fields in which case a new Go object is constructed first
- Logout()[source]¶
Logout() str
Logout disconnects and unlinks the current active [Session]. If there is no active session, this function returns a nil error.
- Disconnect()[source]¶
Disconnect() str
Disconnect stops any active connection to Signal without removing authentication credentials.
- SendMessage(message)[source]¶
SendMessage(object message) str, str
SendMessage processes the given [Message], and sends it to to Signal. Messages can contain a multitude of different fields denoting different semantics, see the [Message] type for more information.
- SendTyping(typing)[source]¶
SendTyping(object typing) str
SendTyping sends a typing notification from us to a given contact on Signal.
- SendReceipt(receipt)[source]¶
SendReceipt(object receipt) str
SendReceipt sends a read receipt for for a given set of messages to Signal.
- SendDelete(delete)[source]¶
SendDelete(object delete) str
SendDelete sends a “Delete for Everyone” message to Signal for a given message ID.
- GetBackupContacts()[source]¶
GetBackupContacts() []object, str
GetBackupContacts fetches any contacts stored in local backup, which is usually populated by archive transfer during initial connection. Contact information returned may be partial.
- GetContact(id)[source]¶
GetContact(str id) object, str
GetContact returns a concrete [Contact] representation for the account ID given. If no contact information could be found, an empty contact will be returned with no error.
- SetEventHandler(h, goRun=False)[source]¶
SetEventHandler(callable h)
SetEventHandler assigns the given handler function for propagating internal events into the Python gateway. Note that the event handler function is not entirely safe to use directly, and all calls should instead be sent to the [Gateway] via its internal call channel.
- class slidgnal.generated.signal.Typing(*args, **kwargs)[source]¶
Bases:
slidgnal.generated.go.GoClassTyping contains event data related to typing notifications.
handle=A Go-side object is always initialized with an explicit handle=arg otherwise parameters can be unnamed in order of field names or named fields in which case a new Go object is constructed first
- class slidgnal.generated.signal.ArchiveSync(*args, **kwargs)[source]¶
Bases:
slidgnal.generated.go.GoClassArchiveSync represents event data for initial synchronization of chat state during login.
handle=A Go-side object is always initialized with an explicit handle=arg otherwise parameters can be unnamed in order of field names or named fields in which case a new Go object is constructed first
- class slidgnal.generated.signal.EventPayload(*args, **kwargs)[source]¶
Bases:
slidgnal.generated.go.GoClassEventPayload represents the collected payloads for all event types handled by the overarching session adapter handler. Only specific fields will be populated in events emitted by internal handlers, see documentation for specific types for more information.
handle=A Go-side object is always initialized with an explicit handle=arg otherwise parameters can be unnamed in order of field names or named fields in which case a new Go object is constructed first
- class slidgnal.generated.signal.Login(*args, **kwargs)[source]¶
Bases:
slidgnal.generated.go.GoClassLogin represents event data for login events, typically carrying QR code information used for out-of-band authentication.
handle=A Go-side object is always initialized with an explicit handle=arg otherwise parameters can be unnamed in order of field names or named fields in which case a new Go object is constructed first
- class slidgnal.generated.signal.Reply(*args, **kwargs)[source]¶
Bases:
slidgnal.generated.go.GoClassA Reply represents a reference to a previous message being replied to, with partial data set.
handle=A Go-side object is always initialized with an explicit handle=arg otherwise parameters can be unnamed in order of field names or named fields in which case a new Go object is constructed first
- class slidgnal.generated.signal.Attachment(*args, **kwargs)[source]¶
Bases:
slidgnal.generated.go.GoClassA Attachment represents any binary data provided alongside a [Message], for instance, an image or voice message.
handle=A Go-side object is always initialized with an explicit handle=arg otherwise parameters can be unnamed in order of field names or named fields in which case a new Go object is constructed first
- class slidgnal.generated.signal.Avatar(*args, **kwargs)[source]¶
Bases:
slidgnal.generated.go.GoClassA Avatar represents a small image set for a [Contact] or [Group].
handle=A Go-side object is always initialized with an explicit handle=arg otherwise parameters can be unnamed in order of field names or named fields in which case a new Go object is constructed first
- class slidgnal.generated.signal.LinkedDevice(*args, **kwargs)[source]¶
Bases:
slidgnal.generated.go.GoClassA LinkedDevice represents a unique pairing session between the gateway and Signal. It is not unique to the underlying “main” device (or user/phone number), as multiple linked devices may be paired with any main device.
handle=A Go-side object is always initialized with an explicit handle=arg otherwise parameters can be unnamed in order of field names or named fields in which case a new Go object is constructed first
- class slidgnal.generated.signal.Connect(*args, **kwargs)[source]¶
Bases:
slidgnal.generated.go.GoClassConnect represents event data for connection events, typically carrying connection errors and other metadata.
handle=A Go-side object is always initialized with an explicit handle=arg otherwise parameters can be unnamed in order of field names or named fields in which case a new Go object is constructed first
- class slidgnal.generated.signal.Contact(*args, **kwargs)[source]¶
Bases:
slidgnal.generated.go.GoClassA Contact represents any entity that be communicated with directly in Signal. This typically represents people, but not a group-chat.
handle=A Go-side object is always initialized with an explicit handle=arg otherwise parameters can be unnamed in order of field names or named fields in which case a new Go object is constructed first
- class slidgnal.generated.signal.Delete(*args, **kwargs)[source]¶
Bases:
slidgnal.generated.go.GoClassDelete represents a message deletion event, for any type of message.
handle=A Go-side object is always initialized with an explicit handle=arg otherwise parameters can be unnamed in order of field names or named fields in which case a new Go object is constructed first
- class slidgnal.generated.signal.Gateway(*args, **kwargs)[source]¶
Bases:
slidgnal.generated.go.GoClassGoClass is the base class for all GoPy wrapper classes
handle=A Go-side object is always initialized with an explicit handle=arg otherwise parameters can be unnamed in order of field names or named fields in which case a new Go object is constructed first
- class slidgnal.generated.signal.Logout(*args, **kwargs)[source]¶
Bases:
slidgnal.generated.go.GoClassLogout represents event data for logout events, either expected (due to unlinking of a device) or unexpected (due to upstream errors).
handle=A Go-side object is always initialized with an explicit handle=arg otherwise parameters can be unnamed in order of field names or named fields in which case a new Go object is constructed first
- slidgnal.generated.signal.NewSession(g, d)[source]¶
NewSession(object g, object d) object
NewSession returns a new, inactive connection to Signal. Sessions are expected to be activated via subsequent calls to [Session.Login], which will generally continue out-of-band; see the relevant documentation for more details.