Skip to content

Instantly share code, notes, and snippets.

@maail
Last active June 6, 2020 04:24
Show Gist options
  • Save maail/a5007298e2eeb726b565b819851757ed to your computer and use it in GitHub Desktop.
Save maail/a5007298e2eeb726b565b819851757ed to your computer and use it in GitHub Desktop.
On document create Telegram
/// on post created
exports.documentCreate = functions.firestore
.document('document/{documentId}')
.onCreate((change, context) => {
bot.telegram.sendMessage(functions.config().bot.chat, '📄 New post created')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment