Skip to content

Commit

Permalink
add upload_v2
Browse files Browse the repository at this point in the history
Signed-off-by: Yuyutsu Rai <[email protected]>
  • Loading branch information
Yuyuutsu committed Dec 9, 2024
1 parent 4ca02ac commit 99136f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/slack_notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def post_slack_notification(

try:
if content:
response = client.files_upload(
response = client.files_upload_v2(
channel=slack_channel,
content=content,
filetype=file_type,
Expand All @@ -72,7 +72,7 @@ def post_slack_notification(
)

else:
response = client.files_upload(
response = client.files_upload_v2(
channel=slack_channel,
file=attachment_filename,
title=title,
Expand Down

0 comments on commit 99136f4

Please sign in to comment.