View module source on GitHub

FileAttachment

@dataclass
class FileAttachment()

to_dict

def to_dict() -> dict[str, Any]
Convert the file attachment to a dictionary. Returns: A dictionary containing the file attachment.

FileDataAttachment

@dataclass
class FileDataAttachment()

__post_init__

def __post_init__() -> None
Initialize the file data attachment.

to_dict

def to_dict() -> dict[str, Any]
Convert the file data attachment to a dictionary. Returns: A dictionary containing the file data attachment.

UrlAttachment

@dataclass
class UrlAttachment()

__post_init__

def __post_init__() -> None
Initialize the url attachment.

to_dict

def to_dict() -> dict[str, Any]
Convert the url attachment to a dictionary. Returns: A dictionary containing the url attachment.