Attachment class
This is the full description of the Attachment class.
- class google_workspace.gmail.message.Attachment
A file attachment.
- Parameters
attachment_part (
dict
) – The message part that is the attachment as a dict.
- is_inline
A boolean indicating if this attachment is inline.
- content_id
The content id.
- filename
The attachment’s file name.
- payload
The raw attachment data.
- download(path: Optional[str] = None) str
Save the attachment data to disk.
- Parameters
path (
str
, optional) – A path to save the file to, if not set we default to the file name