telegram_backup icon indicating copy to clipboard operation
telegram_backup copied to clipboard

Improve HTML output

Open fabianonline opened this issue 9 years ago • 3 comments

The HTML output can surely be made a lot more beautiful. But I'm not that creative when it comes to design - so I'm all open for ideas. ;-)

fabianonline avatar Sep 20 '16 16:09 fabianonline

The index.html maybe could include profile pictures?

luckydonald avatar Nov 30 '16 10:11 luckydonald

Also regarding the chat messages, there could be some styling based on the messages entities. Here is a table I made for use with the Bot api, but I believe the messages entities exists here too.

entity html open
 html close
tg md  github notes
italic <i> </i>  _ _{italic}_ italic text
bold <b> </b>  * **{bold}** bold text
code <code> </code>  ` `{code}` monowidth string
pre <pre> </pre>  ``` ```{pre}``` monowidth block, see code block escaping
mention <a href="http://telegram.me/{mention}"> </a>  * [@{mention}](http://telegram.me/{mention}) @username
text_mention - -  - [{text_mention}](http://telegram.me/#no_username) Only the user ID is given. Just hide the id somewhere.
hashtag - -  [#{hashtag}](#)  Not used, but avoid triggering of issue numbers.
bot_command - -  escape as code? 
url <a href="{url}">{url}</a>  [{url}]({url})  [{url}]({url})  Or just keep the text?
email <a href="mailto://{email}">{email}</a> [{email}](mailto://{email})  Or just keep the text?
text_link <a href="{link}">{text}</a>  [{text}]({link}) [{text}]({link}) for clickable text URLs

Maybe there can be some hyperlinks linking to other generated pages.

luckydonald avatar Nov 30 '16 11:11 luckydonald

More files could be embedded. For example Video files - these could also auto-play "GIF" animations.

SebiderSushi avatar Apr 29 '18 15:04 SebiderSushi