Last active
August 2, 2017 14:37
-
-
Save sgdc3/1d116ad3720287db7546f1b03ce33278 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
module['exports'] = function echoBot (hook) { | |
var request = require('request'); | |
request | |
.post('https://api.telegram.org/bot' + hook.env.nomorebot_bot_key + '/sendMessage') | |
.form({ | |
"chat_id": hook.params.message.chat.id, | |
"text": hook.params.message.text | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment