chat.models.message
Classes
A single chat message bound to channel. |
Functions
|
Ensures that the message id is created upon instantiation. This helps |
Module Contents
- class chat.models.message.Message[source]
Bases:
onegov.core.orm.BaseA single chat message bound to channel.
- property subtype: str | None[source]
An optional subtype for this message used for separating messages of a type further (currently for UI).
Should be made unique, but there’s no guarantee.
- chat.models.message.init(target: Message, args: tuple[Any, ...], kwargs: dict[str, Any]) None[source]
Ensures that the message id is created upon instantiation. This helps to ensure that each message is ordered according to it’s creation.
Note that messages created within a millisecond of each other are ordered randomly.