mstickereditor
mstickereditor copied to clipboard
import sticker packs from telegram, to be used at the Maunium sticker picker for Matrix
Unfortunately, the current iOS Element app does not support webp stickers. After testing, I have successfully enabled animated stickers in the iOS Element app. Below is an example sticker format:...
Consider wrapping it in a newtype struct like this: ```rust #[derive(Deserialize, Eq, Hash, PartialEq, PartialOrd, Ord, Serialize)] #[serde(transparent)] pub struct MediaHash( #[serde(with = "serde_big_array::BigArray")] pub database::Hash ); ```
I tried it and compiled it but my stickers are not working (?) The media files appear to be there but nothing is showing, not even in Element.  https://0x416c69.github.io/stickerpicker/web/#pack-tg_name_MyQuby...
import of some stickerpacks fail: ``` ERROR failed to import sticker 2 from pack "TheLittleMole" Caused by: 0: error sending request for url (https://matrix-client.matrix.org/_matrix/media/r0/upload?access_token=TOKEN&filename=stickers%2Ffile_3643.webp): http2 error: stream error received: unspecific...
import of some sticker failed ``` ERROR failed to import sticker 1 from pack "MrOlaf" Caused by: Telegram request was not successful: 400 Bad Request: wrong file_id or the file...
For example at the sticker pack https://t.me/addstickers/LANI_Kurumi_chan_2_ENG the import of the following stickers does fail: ``` ERROR failed to import sticker 0 from pack "LANI_Kurumi_chan_2_ENG" Caused by: BufferSizeFailed: Expected (width...
sticker should be compressed, before uploaded to matrix. For example pngs can be compressed with [oxipng](https://github.com/shssoichiro/oxipng). Todo: - [ ] png - [ ] webm
see https://github.com/LuckyTurtleDev/mstickereditor/issues/28#issuecomment-1692223720 If the import of all stickers fail. As example if all stickers are video stickers. A empty pack will be created. Currently only a warning will be shown.
use this for log + indicatif https://docs.rs/env_logger/0.10.0/env_logger/struct.Builder.html#method.target
- [ ] how to get the bot token? - [ ] reminder to create/update the index - [ ] how to enable the widget? - [ ] how to...