first winbuild tests

This commit is contained in:
2020-05-04 21:17:10 +02:00
parent 2353e4b420
commit 714c087973
2 changed files with 89 additions and 25 deletions

View File

@ -15,8 +15,8 @@ int TelegramAPI::sendMessage(const std::string& text) {
std::string reply = request("https://api.telegram.org/bot" + apikey + "/sendmessage", false, args, headers);
unsigned const long ULONG_MAX = -1;
if (reply.find("\"error_code\"") != ULONG_MAX) {
unsigned long ulongmax = -1;
if (reply.find("\"error_code\"") != ulongmax) {
Logger::error("failed to refresh the ip (Dynu API)");
return -1;
}