mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-06-04 23:25:31 +00:00
Add description for variables in msgs
@@ -9,15 +9,15 @@ You can design your own WhatsApp conversation page by creating a Jinja template.
|
|||||||
|
|
||||||
# The "msgs" variable
|
# 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
|
As stated, msgs is a list. Inside the msgs variable, each item in the list is a dict containing the following keys
|
||||||
* sender
|
* sender (str|None): The name or the phone number of the message sender.
|
||||||
* time
|
* time (str): The time of the message being sent. In format "%H:%M".
|
||||||
* key_id
|
* key_id (str): The message ID in the WhatsApp database.
|
||||||
* timestamp
|
* timestamp (int): The timestamp of the message in second.
|
||||||
* from_me
|
* from_me (bool): Whether the message is sent by you or the peer(s)
|
||||||
* reply
|
* reply (str|None): If the message is replying to some message, this will be the ID of the message being replied.
|
||||||
* media
|
* media (bool): Whether the message is a media.
|
||||||
* meta
|
* meta (bool): Whether the message is a metadata. For example, someone join the group.
|
||||||
* data
|
* data (str|None): The actually message or metadata.
|
||||||
* quoted_data
|
* quoted_data (str|None): The actually message that being replied.
|
||||||
* mime
|
* mime (str|None): The MIME type of the media.
|
||||||
* caption
|
* caption (str|None): The caption along with media.
|
||||||
|
|||||||
Reference in New Issue
Block a user