From 4806bf8fe089034f139f0f507a87a9c8f5a87507 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Mon, 15 Mar 2021 22:15:21 +0300 Subject: [PATCH] fix robot --- bots/modules/robot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots/modules/robot.py b/bots/modules/robot.py index 16c360a..5304c0c 100644 --- a/bots/modules/robot.py +++ b/bots/modules/robot.py @@ -47,7 +47,7 @@ class RobotBotModuleConfig(TelegramBotModuleConfig): file_path = os.path.join(d, filename) file.download(file_path) s3 = boto3.client('s3', aws_access_key_id=config.aws_access_key_id, aws_secret_access_key=config.aws_secret_access_key) - s3.upload_file(file_path, config.s3_bucket, filename, extra_args={'ACL': 'public-read'}) + s3.upload_file(file_path, config.s3_bucket, filename, ExtraArgs={'ACL': 'public-read'}) file_url = f'https://{config.s3_bucket}.s3.amazonaws.com/{filename}' if update.message.photo: markup.inline_keyboard = [[