aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bot.py3
1 files changed, 3 insertions, 0 deletions
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):
224 if jobs: 224 if jobs:
225 jobs[0].data.append(msg_dict) 225 jobs[0].data.append(msg_dict)
226 else: 226 else:
227 # TODO
228 # media_group_sender won't end the callback context
229 # should add a job event listener
227 context.job_queue.run_once(callback=media_group_sender, when=5, data=[msg_dict], 230 context.job_queue.run_once(callback=media_group_sender, when=5, data=[msg_dict],
228 name=str(message.media_group_id)) 231 name=str(message.media_group_id))
229 else: 232 else:
Powered by cgit v1.2.3 (git 2.41.0)