Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions chatbase/base_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def __init__(self,
message="",
intent="",
version="",
user_id=""):
user_id="",
time_stamp=None):
self.api_key = api_key
self.platform = platform
self.message = message
Expand All @@ -57,7 +58,7 @@ def __init__(self,
self.user_id = user_id
self.not_handled = False
self.feedback = False
self.time_stamp = Message.get_current_timestamp()
self.time_stamp = time_stamp or Message.get_current_timestamp()
self.type = MessageTypes.USER

@staticmethod
Expand Down