diff options
author | clarkzjw <[email protected]> | 2023-02-20 23:58:10 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-02-20 23:58:10 -0800 |
commit | f7ace426c8456a2d226e8ebf7c78ba66eebe0b83 (patch) | |
tree | 72828e04beab20ae3c3584c0591ddec1d8a94e3d /bot.py | |
parent | 25c5863df871629c74b3f8d678a0a8c9e786e227 (diff) | |
download | swarm2fediverse-f7ace426c8456a2d226e8ebf7c78ba66eebe0b83.tar.gz |
add TODO
Diffstat (limited to 'bot.py')
-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: |