Skip to content

Quote

Quote

Bases: BaseModel

Dataclass to representing a quote.

Attributes:

Name Type Description
id int

The ID of the quoted message.

author str

The author of the quoted message.

author_number str | None

The phone number of the author of the quoted message, if available.

author_uuid str

The UUID of the author of the quoted message.

text str

The text of the quoted message.

attachments list[dict[str, Any]]

A list of attachments of the quoted message, if available.

Source code in src/signalbot/quote.py
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class Quote(BaseModel):
    """Dataclass to representing a quote.

    Attributes:
        id: The ID of the quoted message.
        author: The author of the quoted message.
        author_number: The phone number of the author of the quoted message, if
            available.
        author_uuid: The UUID of the author of the quoted message.
        text: The text of the quoted message.
        attachments: A list of attachments of the quoted message, if available.
    """

    model_config = ConfigDict(alias_generator=to_camel)  # Support fields in camel case

    id: int
    author: str
    author_number: str | None = None
    author_uuid: str
    text: str
    attachments: list[dict[str, Any]]