Agent cannot upload media to Telegram message
Looking at the loadWebMedia function:
if (/^https?:///i.test(mediaUrl)) {
// Fetch from URL
const fetched = await fetchRemoteMedia({ url: mediaUrl });
}
// Local path
const data = await fs.readFile(mediaUrl);
It DOES support local paths! But the issue is in send.js:
if (options.mediaUrl) { // Only looks at mediaUrl!
const media = await loadWebMedia(options.mediaUrl);
}
