Skip to content

Instantly share code, notes, and snippets.

@maail
Created June 6, 2020 04:23
Show Gist options
  • Save maail/6d972ffc60071879397980c064a0fc15 to your computer and use it in GitHub Desktop.
Save maail/6d972ffc60071879397980c064a0fc15 to your computer and use it in GitHub Desktop.
On user create telegram
exports.onUserCreate = functions.auth.user().onCreate((user) => {
bot.telegram.sendMessage(functions.config().bot.chat, '🎉 New user joined')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment