Commit
·
4797387
1
Parent(s):
0bfc263
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,7 +53,7 @@ async def main():
|
|
| 53 |
elif '@Mohammed_Alakhras' in text:
|
| 54 |
last_reply_time = reply_times.get(str(str(chat_id)+str(sender_id)), None)
|
| 55 |
if last_reply_time is None or time.time() - last_reply_time > 60*2:
|
| 56 |
-
response = f'Hello {sender_name}, I received your message and will reply as soon as possible. Thank you for your understanding.'
|
| 57 |
await client.send_message(chat_id, response)
|
| 58 |
reply_times[str(str(chat_id)+str(sender_id))] = time.time()
|
| 59 |
|
|
|
|
| 53 |
elif '@Mohammed_Alakhras' in text:
|
| 54 |
last_reply_time = reply_times.get(str(str(chat_id)+str(sender_id)), None)
|
| 55 |
if last_reply_time is None or time.time() - last_reply_time > 60*2:
|
| 56 |
+
response = f'Hello {sender_name}@{chat}, I received your message and will reply as soon as possible. Thank you for your understanding.'
|
| 57 |
await client.send_message(chat_id, response)
|
| 58 |
reply_times[str(str(chat_id)+str(sender_id))] = time.time()
|
| 59 |
|