From f7ace426c8456a2d226e8ebf7c78ba66eebe0b83 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Mon, 20 Feb 2023 23:58:10 -0800 Subject: add TODO --- bot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bot.py b/bot.py index 80d8e16..4402d08 100644 --- a/bot.py +++ b/bot.py @@ -224,6 +224,9 @@ async def photo(update: Update, context: CallbackContext): if jobs: jobs[0].data.append(msg_dict) else: + # TODO + # media_group_sender won't end the callback context + # should add a job event listener context.job_queue.run_once(callback=media_group_sender, when=5, data=[msg_dict], name=str(message.media_group_id)) else: -- cgit v1.2.3