github ankit-chaubey/ferogram v0.6.8

43 minutes ago

ferogram 0.6.8

This one is mostly about audio uploads, plus the move to TL layer 234.

Audio uploads now know what they're uploading

With the new metadata feature (it uses lofty), Client::upload_file reads the title, artist and duration from your audio files. If there's embedded JPEG cover art (up to 200 KB), it gets uploaded as the thumbnail. All of this is applied when you send the file with UploadedFile::as_auto_media. If you don't want it, call .no_metadata() on the upload.

You can also set things by hand with title, performer, duration, dimensions and thumbnail on UploadedFile. Those override whatever was read from the file, and they work without the feature. duration and dimensions apply to video too.

ferogram = { version = "0.6.8", features = ["metadata"] }

Smaller things

  • Dispatcher::with(router) lets you chain routers instead of calling include on a mutable dispatcher.
  • Logs are a lot quieter. Routine messages (session saved, transfer checkpoints, dispatch loop exit, updatesTooLong, shutdown cancellation) moved from info/warn down to debug.

Full changelog: v0.6.7...v0.6.8

Don't miss a new ferogram release

NewReleases is sending notifications on new releases.