diff options
Diffstat (limited to 'bot')
-rw-r--r-- | bot/bot.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -181,13 +181,13 @@ async def process(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: | |||
181 | output.seek(0) | 181 | output.seek(0) |
182 | upload_to_s3(photo.fileId, output.read()) | 182 | upload_to_s3(photo.fileId, output.read()) |
183 | 183 | ||
184 | await rebuild(update) | 184 | await rebuild(update, context) |
185 | 185 | ||
186 | except Exception: | 186 | except Exception: |
187 | await update.message.reply_markdown_v2(text="Error:\n```{}```".format(traceback.format_exc())) | 187 | await update.message.reply_markdown_v2(text="Error:\n```{}```".format(traceback.format_exc())) |
188 | 188 | ||
189 | 189 | ||
190 | async def rebuild(update: Update) -> None: | 190 | async def rebuild(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None: |
191 | write_json() | 191 | write_json() |
192 | response = httpx.post(cloudflare_pages_deploy_hook_url) | 192 | response = httpx.post(cloudflare_pages_deploy_hook_url) |
193 | if response.status_code == 200: | 193 | if response.status_code == 200: |