Answer the question
In order to leave comments, you need to log in
Messages are sent in the pycharm terminal, not in a dialog with the bot. This gives the error :Unresolved reference 'message'?
import time
import schedule
def messege():
bot.send_message(message.chat.id, 'Hi! I am a message sent at 7 am.')
schedule.every().day.at("07:00"). do(messege)
while True:
schedule.run_pending()
time.sleep(1)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question