From ae2027826f829995d6812c53eea1e2fdf9702c48 Mon Sep 17 00:00:00 2001 From: Yuriy Date: Thu, 4 Jul 2024 00:38:16 -0400 Subject: [PATCH] telegram API always return data instead of only on error --- API-Functions.ahk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/API-Functions.ahk b/API-Functions.ahk index 2dfb54e..6ff54a7 100644 --- a/API-Functions.ahk +++ b/API-Functions.ahk @@ -167,7 +167,7 @@ SendTelegramPhoto(token, chatID, file, caption := "", ParseMode := "MarkdownV2") whr := ; free COM object ; Msgbox % "json_resp: " json_resp - if(InStr(json_resp, "error_code")) + ; if(InStr(json_resp, "error_code")) Return json_resp } @@ -195,7 +195,7 @@ SendTelegramVideo(token, chatID, file, caption := "", ParseMode := "MarkdownV2") whr := ; free COM object ; Msgbox % "json_resp: " json_resp - if(InStr(json_resp, "error_code")) + ; if(InStr(json_resp, "error_code")) Return json_resp } @@ -224,7 +224,7 @@ SendTelegramFile(token, chatID, file, caption := "", ParseMode := "MarkdownV2") whr := ; free COM object ; Msgbox % "json_resp: " json_resp - if(InStr(json_resp, "error_code")) + ; if(InStr(json_resp, "error_code")) Return json_resp }