aboutsummaryrefslogtreecommitdiff
path: root/bot.py
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-02-20 23:58:10 -0800
committerclarkzjw <[email protected]>2023-02-20 23:58:10 -0800
commitf7ace426c8456a2d226e8ebf7c78ba66eebe0b83 (patch)
tree72828e04beab20ae3c3584c0591ddec1d8a94e3d /bot.py
parent25c5863df871629c74b3f8d678a0a8c9e786e227 (diff)
downloadswarm2fediverse-f7ace426c8456a2d226e8ebf7c78ba66eebe0b83.tar.gz
add TODO
Diffstat (limited to 'bot.py')
-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)