|
@@ -15,7 +15,6 @@ class HistoryDialogueService:
|
|
|
self.base_url = base_url
|
|
|
|
|
|
def get_dialogue_history(self, staff_id: str, user_id: str, recent_minutes: int = 1440):
|
|
|
- recent_minutes = min(recent_minutes, 24 * 60)
|
|
|
time_begin = int(time.time() * 1000) - recent_minutes * 60 * 1000
|
|
|
url = f"{self.base_url}?sender={staff_id}&receiver={user_id}&time={time_begin}"
|
|
|
response = requests.post(url, headers={
|