This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doPost(e) { | |
log("Received doPost") | |
try { | |
const { chatId, text, update } = getUpdate(e) | |
if (myChatId !== chatId) | |
return sendMessage(chatId, `You are not authorized`) | |
if (!isDocument(update)) | |
return sendMessage(chatId, `message is without document`) |