turt2live / matrix-sticker-manager

A service to help people create their own sticker packs (for Dimension)
GNU General Public License v3.0
46 stars 11 forks source link

Add telegram import to bot #14

Closed dali99 closed 5 years ago

dali99 commented 5 years ago

Would allow self service importing of telegram stickerpacks

turt2live commented 5 years ago

This is the responsibility of another party or project, not the sticker manager. The sticker manager is an implementation of a Matrix spec proposal to prove that the specification works, as well as provide a simple bot to manage native sticker packs. The format exposed by the API is (in future) intended to be used by other projects which may support importing and sharing of sticker packs.

dali99 commented 5 years ago

I'll try implement a tool to import telegram into such a room then!

turt2live commented 5 years ago

fwiw if you tack .json onto the end of any stickerpack URL, you'll see the format I'm talking about.

dali99 commented 5 years ago

How long is the .json cached? Would it be possible to return a dummy json and later change it?

turt2live commented 5 years ago

The important part at the moment is really just the io.t2bot.dimension part - it is cached indefinitely. The meat of the sticker pack is actually contained in the room referenced there.

dali99 commented 5 years ago

So the stickerpicker doesn't use the stickers array to load the stickers?

turt2live commented 5 years ago

Nope, that's there as experimental reference. It's also not used in the final proposal (which this doesn't fully support either): https://github.com/matrix-org/matrix-doc/pull/1951

dali99 commented 5 years ago

I see, I misunderstood the architecture.

I thought it was stickerpicker->json->sticker-manager->matrix room

i.e the sticker-manager happened to be backed by a matrix room, but could really be anything as long as it returned valid json.

I do like the proposal though, now that I've done a quick read of it

MurzNN commented 3 years ago

I'll try implement a tool to import telegram into such a room then!

@dali99 did you have any results with implementing Telegram stickers import tool?