📅  最后修改于: 2022-03-11 14:57:18.690000             🧑  作者: Mango
from telegram.ext import CommandHandler, Updater
my_token = 'YOUR TOKEN'
updater = Updater(my_token, use_context=True)
job_queue = updater.job_queue
def send_message_job(context):
context.bot.send_message(chat_id='@YOUR CHANELL ID',text='job executed')
job_queue.run_repeating(send_message_job,interval=10.0,first=0.0)