From 5c4127446b80c176df53c62548046a4989a2d44a Mon Sep 17 00:00:00 2001 From: nalbam Date: Wed, 5 Jun 2024 14:51:57 +0900 Subject: [PATCH] fix files_upload_v2 --- handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler.py b/handler.py index 4e15cb8..5f06562 100644 --- a/handler.py +++ b/handler.py @@ -308,7 +308,7 @@ def conversation(say: Say, thread_ts, content, channel, user, client_msg_id): if image: # Send the image to Slack - app.client.files_upload( + app.client.files_upload_v2( channels=channel, file=io.BytesIO(image), title="Generated Image",