DanH42 / mi1kb0t

A multi-platform chat bot
MIT License
43 stars 17 forks source link

Better image handling support #12

Open DanH42 opened 8 years ago

DanH42 commented 8 years ago

Images currently need to be handled by plugins on a per-network basis. There are already weird glitches with Messenger's images, and additional networks will only complicate things more. There should be core support for sending images that gets handled by the network. Potential example:

reply({
    image: "http://example.com/image.jpg",
    alt: "Message to be displayed on text-only networks (if blank, use the image URL)"
});

Possibly also allow for supplying a message and an image in the same reply call, to be sent in the same message. Messenger allows this, and other networks could always just handle it on their end as two messages if needed.