Spaces:
Running
Running
Commit
·
df4f66c
1
Parent(s):
ac666ca
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ async def main():
|
|
40 |
if chat_id == sender_id:
|
41 |
# Check the last reply to this sender
|
42 |
last_reply_time = reply_times.get(str(sender_id), None)
|
43 |
-
if last_reply_time is None or time.time() - last_reply_time > 60*60: # reply only if not replied in the last minute
|
44 |
response = f'Hello {sender_name},\n I received your message and will reply as soon as possible. Thank you for your understanding.'
|
45 |
await client.send_message(chat_id, response)
|
46 |
reply_times[str(sender_id)] = time.time() # update the last reply time
|
|
|
40 |
if chat_id == sender_id:
|
41 |
# Check the last reply to this sender
|
42 |
last_reply_time = reply_times.get(str(sender_id), None)
|
43 |
+
if last_reply_time is None or time.time() - last_reply_time > 60*60*6: # reply only if not replied in the last minute
|
44 |
response = f'Hello {sender_name},\n I received your message and will reply as soon as possible. Thank you for your understanding.'
|
45 |
await client.send_message(chat_id, response)
|
46 |
reply_times[str(sender_id)] = time.time() # update the last reply time
|