diff options
-rw-r--r-- | bot.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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: |