telegram-export icon indicating copy to clipboard operation
telegram-export copied to clipboard

HTML formatter needs implementing

Open expectocode opened this issue 7 years ago • 9 comments

It's currently very unfinished. It would be very nice to be able to display the saved data in a good-looking page.

expectocode avatar Feb 27 '18 00:02 expectocode

See #16 for easier reference on the available methods

expectocode avatar Feb 27 '18 01:02 expectocode

How could I provide HTML/CSS templates and who would implement them? I'm decent with the first both, but not in Python.

bytes-commerce avatar Aug 07 '18 15:08 bytes-commerce

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.

Lonami avatar Aug 07 '18 15:08 Lonami

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

expectocode avatar Aug 07 '18 15:08 expectocode

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?

bytes-commerce avatar Aug 07 '18 15:08 bytes-commerce

Yeah, that sounds good!

expectocode avatar Aug 07 '18 21:08 expectocode

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.

expectocode avatar Aug 07 '18 21:08 expectocode

https://github.com/expectocode/telegram-export/pull/92

mr-tron avatar Oct 21 '18 20:10 mr-tron

Any progress on this?

DrakeTDL avatar Jun 05 '19 08:06 DrakeTDL