import telebot
import time
import schedule
import threading
def start_polling():
bot.infinity_polling(none_stop=True)
polling_thread = threading.Thread(target=start_polling)
polling_thread.start()
def start_command():
#...
schedule.every().day.at("17:47").do(start_command)
while True:
schedule.run_pending()
time.sleep(1)