sendPhoto and sendDocument are one upload path now: send_upload() takes the
method and the form field, so  leaves the chat as a
document with the alt text as caption, in the order of the answer. The photo
branch still checks the bytes (PNG/JPEG/GIF/WebP, 10 MiB), so a text file
cannot ride in as a photo; documents are capped at 50 MiB and have to be a
readable regular file. A missing or unreadable path stays a reference in the
chat.
test_gateway: a local PNG is a photo, a text file is a document, and neither
leaves the markdown in the chat.