📱🤖🏷 A simple telegram bot to retrieve leetcode questions
!lc
: to get the question of the day.
Build Telegram Bots with JavaScript - The Complete Guide - YouTube
AWS Lambda
https://api.telegram.org/bot<BOT_TOKEN>/setWebhook?url=<API_GATEWAY_POST_API>
Toggle between local testing and deployment on lambda.
// for local testing
bot.launch();
//lambda export handler for deployment
// exports.handler = (event, context, callback) => {
// const tmp = JSON.parse(event.body);
// bot.handleUpdate(tmp);
// return callback(null, {
// statusCode: 200,
// body: "",
// });
// };