Catch exception
This commit is contained in:
1 parent
70cd5bbaa4
commit
bec5607ef9
1 file changed
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user