Compare commits
2 Commits
670b97d6b1
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 95bda715cb | |||
| ae2027826f |
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -109,13 +109,9 @@ Func_LogErrorsToTextFile(Text){
|
||||
|
||||
; ErrorLoggingFile := Filepath
|
||||
FormatTime, TodayDate , YYYYMMDDHH24MISS, yyyyMMdd_hhmmss
|
||||
text =
|
||||
(
|
||||
|
||||
---------------%TodayDate%---------------
|
||||
%Text%
|
||||
text =`n`n---------------%TodayDate%---------------`n%Text%
|
||||
|
||||
)
|
||||
FileAppend, %Text%, %ErrorLoggingFilePath%
|
||||
}
|
||||
; -------------------------------/LogErrorsToTextFile-------------------------------
|
||||
|
||||
Reference in New Issue
Block a user