From 857b7b00e0990443cab218cbb32e154d3d4f3a7f Mon Sep 17 00:00:00 2001 From: Knugi <24708955+KnugiHK@users.noreply.github.com> Date: Sat, 1 Jan 2022 12:58:31 +0000 Subject: [PATCH] Updated Result HTML Customization (markdown) --- ...t-HTML-Customization-(Docs-In-Progress).md | 23 +++++++++++++++++++ Result-HTML-Customization.md | 3 --- 2 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 Result-HTML-Customization-(Docs-In-Progress).md delete mode 100644 Result-HTML-Customization.md diff --git a/Result-HTML-Customization-(Docs-In-Progress).md b/Result-HTML-Customization-(Docs-In-Progress).md new file mode 100644 index 0000000..5d73692 --- /dev/null +++ b/Result-HTML-Customization-(Docs-In-Progress).md @@ -0,0 +1,23 @@ +# Customization +You can design your own WhatsApp conversation page by creating a Jinja template. + +# Available variables to access in the template +* name (str): The peer or group of the conversation. +* msgs (list): A list containing messages-related data including the message itself. +* my_avatar (str): Path to the user's avatar. +* their_avatar (str): Path to the avatar of the peer or the group of the conversation. + +# The "msgs" variable +As stated, msgs is a list. Inside the msgs variable, each item in the list is a dict containing the following keys +* sender +* time +* key_id +* timestamp +* from_me +* reply +* media +* meta +* data +* quoted_data +* mime +* caption diff --git a/Result-HTML-Customization.md b/Result-HTML-Customization.md deleted file mode 100644 index dccffda..0000000 --- a/Result-HTML-Customization.md +++ /dev/null @@ -1,3 +0,0 @@ -# Customization - -To Do \ No newline at end of file