mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-29 14:06:36 +08:00
1023fa3adb
downloadMedia created a fresh os.MkdirTemp for every private message carrying a photo or document, and no code path anywhere reads Attachment.Path, so each message permanently grew the disk while burning a Bot API download. The handler now removes the directory once onInbound returns. No mechanical proof is possible here: exercising downloadMedia needs a live telebot download. Verified by reading every consumer of InboundMessage .Attachments instead.