Skip to content

Instantly share code, notes, and snippets.

@sgdc3
Last active August 2, 2017 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgdc3/1d116ad3720287db7546f1b03ce33278 to your computer and use it in GitHub Desktop.
Save sgdc3/1d116ad3720287db7546f1b03ce33278 to your computer and use it in GitHub Desktop.
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