This commit is contained in:
Stefano Assenzo 2023-03-11 18:04:16 +00:00 committed by GitHub
parent d8db86a33d
commit 660dfa283a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
from bson.objectid import ObjectId
from dotenv import load_dotenv
from telebot import telebot
import threading
import time
import datetime
import schedule
import pymongo
@ -90,7 +90,8 @@ schedule.every().day.at("12:05").do(send_notification)
schedule.every().day.at("13:05").do(send_notification)
schedule.every().day.at("21:00").do(send_notification)
now = datetime.datetime.now()
t1 = threading.Thread(target=bot.polling).start()
#t1 = threading.Thread(target=bot.polling).start()
while True:
time.sleep(10)
schedule.run_pending()