Catch exception

This commit is contained in:
2023-01-13 20:33:19 +00:00
parent 70cd5bbaa4
commit bec5607ef9

View File

@@ -1,5 +1,6 @@
function doPost(e) {
const contents = JSON.parse(e.postData.contents);
let contents = {};
try { contents = JSON.parse(e.postData.contents); } catch {}
if (contents.message?.media_group_id || !contents.message?.text) {
return;
}