All tools / Messages
Attachment upload limit planner
Check filenames and sizes against the 20 MiB default per file, the 25 MiB request cap, 10 attachments, and embed attachment URLs.
Result
Per file, then the request
The default per-file limit is 20 MiB. Nitro or a boosted server can raise it; interactions report the effective ceiling as attachment_size_limit in bytes. The whole create-message request, files included, must stay within 25 MiB. More than 10 attachments returns 30015. Each file is files[n] and the matching attachment id is that same n. is_spoiler sets the IS_SPOILER flag. Embed images may use attachment://filename only for .jpg, .jpeg, .png, .webp, and .gif. A voice message allows one audio attachment and no content or stickers.
Related: Embed JSON limit checker · File type filter builder