telegram-export
telegram-export copied to clipboard
HTML formatter needs implementing
It's currently very unfinished. It would be very nice to be able to display the saved data in a good-looking page.
See #16 for easier reference on the available methods
How could I provide HTML/CSS templates and who would implement them? I'm decent with the first both, but not in Python.
So @nopenopenope with Python it's fairly easy to replace text with other value (e.g. {MESSAGE}
with the message contents). But no need to worry about that since adding that is easy, as long as we know where what information should be added (text, date, etc.). Even example values would be enough. Mostly need help with the design.
How exciting! I suggest we use a dedicated templating library like Jinja, and also make the formatting tools a separate program. They don't really belong in the same command, and can cause confusion as we saw earlier on @nopenopenope's other issue, with contexts and format-contexts
I'd just provide basic templates for each:
- incoming message
- incoming image
- incoming voice message (? needed)
- outgoing message
- outgoing image
- incoming voice message (? needed)
- Chat header
- general Chat wrapper
I'd provide them in HTML files along with CSS. Its up to you how you render them, in PHP I'd go with sprintf'ing over it to achieve a correct merging strategy. Is that fine for you guys?
Yeah, that sounds good!
I'd love to have something that looks like Telegram Desktop, but that's probably going to be quite difficult. I wonder if we could use stuff from Webogram. By the way, it might be easier to discuss development in the telegram group, the username of which is my GitHub username.
https://github.com/expectocode/telegram-export/pull/92
Any progress on this?