matrix-bot-sdk
matrix-bot-sdk copied to clipboard
Functions to send media (images, videos, etc) easier
- [ ] Automatically encrypt if needed
- [ ] Mimetype detection (probably https://www.npmjs.com/package/file-type)
- [ ] Width & height metadata population
- [ ] Thumbnailing (careful to not use the server for encrypted media: might be best to just always create)
- [ ] Audio/video duration metadata population
- [ ] Blurhash
you are writing "easier" what is the actual method of sending images? i can't find an example
@celevra there's an example here: https://github.com/turt2live/matrix-bot-sdk/blob/4c7207be2e7e5780037eb9d508783f860bb53e8b/examples/encryption_bot.ts#L71C13-L71C89