$attachment

adds an attachment.

If name field is given, you must specify the extension for the attachment (png, webp, or gif)

Usage

$attachment[data;name (optional);type (url or buffer) (optional);spoiler (yes/no, default is no) (optional)]

Example