diff options
Diffstat (limited to 'include/tgbot/tools/StringTools.h')
-rw-r--r-- | include/tgbot/tools/StringTools.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/tgbot/tools/StringTools.h b/include/tgbot/tools/StringTools.h index 0a01b0d..a8b4af1 100644 --- a/include/tgbot/tools/StringTools.h +++ b/include/tgbot/tools/StringTools.h @@ -63,9 +63,10 @@ std::string generateRandomString(size_t length); /** * Performs url encode. * @param value Source url string + * @param additionalLegitChars Optional. String of chars which will be not encoded in source url string. * @return Encoded url string */ -std::string urlEncode(const std::string& value); +std::string urlEncode(const std::string& value, const std::string additionalLegitChars = ""); /** * Performs url decode. |