Skip to content

Commit

Permalink
Configured serverless export
Browse files Browse the repository at this point in the history
  • Loading branch information
Elizabeth Martín Campos committed Jul 30, 2018
1 parent 023d711 commit eeadc32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,12 +589,14 @@ bot.callback((query, next) => {
}
})

bot.stop()

module.exports.telegram = (event, context, callback) => {
bot.processUpdate(event.body) // Botgram processes incoming request
const response = {
statusCode: 200,
body: JSON.stringify({
message: 'Go Serverless v1.0! Your function executed successfully!',
message: 'NearBot v1.0',
input: event
})
}
Expand Down

0 comments on commit eeadc32

Please sign in to comment.