diff --git a/src/includes.ts b/src/includes.ts index c05847c..ba66517 100644 --- a/src/includes.ts +++ b/src/includes.ts @@ -43,10 +43,14 @@ export async function logAndNotifyUser(text: string) { // 'Content-Type': 'application/x-www-form-urlencoded' // } // }) - await axios.post('https://' + appConfig.tgApiDomain + '/bot' + appConfig.tgApiKey + '/sendMessage', qs.stringify({ - chat_id: appConfig.tgChatId, - text: text - })) + try { + await axios.post('https://' + appConfig.tgApiDomain + '/bot' + appConfig.tgApiKey + '/sendMessage', qs.stringify({ + chat_id: appConfig.tgChatId, + text: text + })) + } catch (e) { + console.log(e) + } } export function sleep(ms: number) {