Skip to main content

setAttachment


General

Attaches a file into the attachment and names it.


Usage

Attachment:setAttachment(<string> file, (string) name)
Returns: <Attachment> attachment


Example

Attachment.new():setAttachment('https://0q0.eu/img/okwo.png', 'TestName.json')