I created a Telegram channel to deliver dad jokes every day. I did not want to build a Node.js server and host it on Digital Ocean or Linode because that would be cost inefficient. Instead, I wanted to build an event-driven serverless architecture. We can achieve this with AWS Lambda for the lambda functions and AWS CloudWatch to trigger the lambda through scheduled events.

First I created a bot and added it to a channel. The bot fetches a dad joke from icanhazdadjoke.com and publishes it to the channel. The last step was to trigger the lambda function on a regular schedule.

You can visit the Daily Dad Jokes public channel or subscribe to the channel on Telegram.