telegram_bot/main.py
def unset_weather_job(update: Update, context: CallbackContext) -> None:
    """Remove the job if the user changed their mind."""
    chat_id = update.message.chat_id

    job_morning = str(chat_id)+"morning"
    job_noon = str(chat_id)+"noon"
    job_removed = remove_job_if_exists(job_morning, context)
    job_removed = remove_job_if_exists(job_noon, context)
    text = 'Weather updates successfully cancelled!' if job_removed else 'You have no active timer.'
    update.message.reply_text(text)
Remove the job if the user changed their mind.
Remove the job if the user changed their mind.
Remove the job if the user changed their mind .
def unset_weather_job(update: Update, context: CallbackContext) -> None:
    chat_id = update.message.chat_id
    job_morning = str(chat_id)+"morning"
    job_noon = str(chat_id)+"noon"
    job_removed = remove_job_if_exists(job_morning, context)
    job_removed = remove_job_if_exists(job_noon, context)
    text = 'Weather updates successfully cancelled!' if job_removed else 'You have no active timer.'
    update.message.reply_text(text)
def unset_weather_job ( update : Update , context : CallbackContext ) -> None : chat_id = update . message . chat_id job_morning = str ( chat_id ) + "morning" job_noon = str ( chat_id ) + "noon" job_removed = remove_job_if_exists ( job_morning , context ) job_removed = remove_job_if_exists ( job_noon , context ) text = 'Weather updates successfully cancelled!' if job_removed else 'You have no active timer.' update . message . reply_text ( text )
Remove the job if the user changed their mind.
Remove the job if the user changed their mind .
"""Remove the job if the user changed their mind."""
update
Update
context
CallbackContext