attach_file Method
Creates an attachment from a file.
Syntax
def attach_file(filename: str) -> int: ...
Remarks
Use this method to create an attachment from a file. Use attachments property to provide further attachment details.
The method returns the index of the new attachment in the attachments list.