MohammedAlakhras commited on
Commit
22f6372
·
1 Parent(s): df4f66c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ async def main():
37
  text = event.raw_text
38
 
39
  # Personal message
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
 
37
  text = event.raw_text
38
 
39
  # Personal message
40
+ if chat_id == sender_id and not sender.bot:
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