Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

Add telegram import to bot #14

Closed
dali99 opened this issue Apr 3, 2019 · 9 comments
Closed

Add telegram import to bot #14

dali99 opened this issue Apr 3, 2019 · 9 comments

Comments

@dali99
Copy link

dali99 commented Apr 3, 2019

Would allow self service importing of telegram stickerpacks

@turt2live
Copy link
Owner

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
Copy link
Author

dali99 commented Apr 3, 2019

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

@turt2live
Copy link
Owner

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

@dali99
Copy link
Author

dali99 commented Apr 5, 2019

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

@turt2live
Copy link
Owner

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
Copy link
Author

dali99 commented Apr 5, 2019

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

@turt2live
Copy link
Owner

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

@dali99
Copy link
Author

dali99 commented Apr 5, 2019

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
Copy link

MurzNN commented May 27, 2021

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants