Created
November 18, 2017 12:57
-
-
Save matheus-rossi/cc35e300862673b5dc7833dae21befd1 to your computer and use it in GitHub Desktop.
Telegram Bot
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
const TelegramBot = require('node-telegram-bot-api') | |
const TOKEN = '123345567:AAABBBCCCDDD1A22RbCdTyoIjYaTek' | |
const bot = new TelegramBot(TOKEN, { polling: true }) | |
bot.on('new_chat_members', (msg) => { | |
bot.sendMessage(msg.chat.id, `Olá ${msg.from.first_name}, bem vindo ao Devs SC!! Conte-nos um pouco sobre você, com o que trabalha e onde, se possivel é claro`) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment