mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-17 04:39:55 +01:00
Add missing return statement in timerbot example (#368)
This commit is contained in:
parent
555e36ee80
commit
dd4c0f0f1d
1 changed files with 1 additions and 0 deletions
|
@ -47,6 +47,7 @@ def set(bot, update, args, job_queue):
|
|||
due = int(args[0])
|
||||
if due < 0:
|
||||
bot.sendMessage(chat_id, text='Sorry we can not go back to future!')
|
||||
return
|
||||
|
||||
# Add job to queue
|
||||
job = Job(alarm, due, repeat=False, context=chat_id)
|
||||
|
|
Loading…
Add table
Reference in a new issue