Spaces:
Running
Running
Commit
ยท
a38cf12
1
Parent(s):
cb5faa8
Update app.py
Browse files
app.py
CHANGED
@@ -92,7 +92,7 @@ async def main():
|
|
92 |
last_reply_time = reply_times.get(str(sender_id), None)
|
93 |
if last_reply_time is None or time.time() - last_reply_time > 60*60*6: # reply only if not replied in the last minute
|
94 |
# response = f'Hello <a href="tg://user?id={sender_id}">{sender_name}</a> ๐๐ป ,\n {random.choice(RndMssgs)} ๐'
|
95 |
-
response = f'ุฃููุง <a href="tg://user?id={sender_id}">{sender_name}</a> ๐๐ป ,\n ุฃุนุชุฐุฑ ูู ุฃููู
ุจุงูุฑุฏ ุนูู ุงูุฑุณุงุฆู ุงูุฎุงุตุฉ ูู
|
96 |
await client.send_message(chat_id, response, parse_mode='HTML')
|
97 |
reply_times[str(sender_id)] = time.time() # update the last reply time
|
98 |
|
@@ -101,7 +101,7 @@ async def main():
|
|
101 |
last_reply_time = reply_times.get(str(str(chat_id)+str(sender_id)), None)
|
102 |
if last_reply_time is None or time.time() - last_reply_time > 60*5:
|
103 |
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 {random.choice(RndMssgs)} ๐'
|
104 |
-
await client.send_message(chat_id, response, parse_mode='HTML')
|
105 |
reply_times[str(str(chat_id)+str(sender_id))] = time.time()
|
106 |
|
107 |
|
|
|
92 |
last_reply_time = reply_times.get(str(sender_id), None)
|
93 |
if last_reply_time is None or time.time() - last_reply_time > 60*60*6: # reply only if not replied in the last minute
|
94 |
# response = f'Hello <a href="tg://user?id={sender_id}">{sender_name}</a> ๐๐ป ,\n {random.choice(RndMssgs)} ๐'
|
95 |
+
response = f'ุฃููุง <a href="tg://user?id={sender_id}">{sender_name}</a> ๐๐ป ,\n ุฃุนุชุฐุฑ ูู ุฃููู
ุจุงูุฑุฏ ุนูู ุงูุฑุณุงุฆู ุงูุฎุงุตุฉ ูู ุชูุบุฑุงู
\n ูู
ููู ุงูุชูุงุตู ู
ุนู ุนุจุฑ ุชุทุจูู Messenger \n <a href="https://www.facebook.com/MohammedAlakras/">ู
ู ููุง</a> '
|
96 |
await client.send_message(chat_id, response, parse_mode='HTML')
|
97 |
reply_times[str(sender_id)] = time.time() # update the last reply time
|
98 |
|
|
|
101 |
last_reply_time = reply_times.get(str(str(chat_id)+str(sender_id)), None)
|
102 |
if last_reply_time is None or time.time() - last_reply_time > 60*5:
|
103 |
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 {random.choice(RndMssgs)} ๐'
|
104 |
+
await client.send_message(chat_id, response, parse_mode='HTML',disable_web_page_preview=True)
|
105 |
reply_times[str(str(chat_id)+str(sender_id))] = time.time()
|
106 |
|
107 |
|