Update push_notice_msg.py

This commit is contained in:
midoks
2023-05-28 19:00:42 +08:00
parent ca455f13e8
commit 531de1407f
@@ -108,7 +108,7 @@ def send_msg(bot, tag='ad', trigger_time=300):
msg = bot.send_message(chat_id, msg_notice, reply_markup=markup)
# print(msg.message_id)
time.sleep(60)
time.sleep(90)
try:
bot.delete_message(
chat_id=chat_id, message_id=msg.message_id)
@@ -118,7 +118,7 @@ def send_msg(bot, tag='ad', trigger_time=300):
def run(bot):
try:
send_msg(bot, 'notice_msg', 180)
send_msg(bot, 'notice_msg', 90)
except Exception as e:
writeLog('-----push_notice_msg error start -------')
print(mw.getTracebackInfo())