fix robot
This commit is contained in:
parent
82f61833e7
commit
4806bf8fe0
@ -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 = [[
|
||||
|
Loading…
Reference in New Issue
Block a user