MohammedAlakhras commited on
Commit
071fa59
·
1 Parent(s): 31e25aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ async def main():
49
  elif '@Mohammed_Alakhras' in text:
50
  last_reply_time = reply_times.get(str(str(chat_id)+str(sender_id)), None)
51
  if last_reply_time is None or time.time() - last_reply_time > 60*5:
52
- response = f'Hello <a href="tg://user?id={sender_id}">{sender_name}</a> @ {chat.title},\n I received your message and will reply as soon as possible. Thank you for your understanding.'
53
  await client.send_message(chat_id, response, parse_mode='HTML')
54
  reply_times[str(str(chat_id)+str(sender_id))] = time.time()
55
 
 
49
  elif '@Mohammed_Alakhras' in text:
50
  last_reply_time = reply_times.get(str(str(chat_id)+str(sender_id)), None)
51
  if last_reply_time is None or time.time() - last_reply_time > 60*5:
52
+ response = f'Hello <a href="tg://user?id={sender_id}">{sender_name}</a> @ <a href="https://t.me/c/{chat_id}">{chat.title}</a>,\n I received your message and will reply as soon as possible. Thank you for your understanding.'
53
  await client.send_message(chat_id, response, parse_mode='HTML')
54
  reply_times[str(str(chat_id)+str(sender_id))] = time.time()
55