add 'nofiles' option, refactored bot.Send(); fixes #2

This commit is contained in:
Aine
2022-08-26 16:11:08 +03:00
parent 42c9e15619
commit 2dcba843cc
4 changed files with 47 additions and 28 deletions

View File

@@ -78,6 +78,13 @@ var (
optionNoThreads,
),
},
{
key: optionNoFiles,
description: fmt.Sprintf(
"Get or set `%s` of the room (`true` - ignore email attachments; `false` - upload email attachments)",
optionNoFiles,
),
},
}
// sanitizers is map of option name => sanitizer function
@@ -87,6 +94,7 @@ var (
optionNoSubject: utils.SanitizeBoolString,
optionNoHTML: utils.SanitizeBoolString,
optionNoThreads: utils.SanitizeBoolString,
optionNoFiles: utils.SanitizeBoolString,
}
)