It is a telegram bot used to download audio files from YouTube. It supports long videos too! Despite the telegram limitation on file size.
AWS Lambda (AWS SQS)
|----------| |----------------| |------------------------|
| Telegram | -- webhook -> | bot-entrypoint | -- pushes to -> | download request queue |
|----------| |----------------| |------------------------|
(AWS SQS) AWS Lambda [AWS SQS]
|------------------------| |------------------| |------------------------|
| download request queue | -- triggers -> | video downloader | -- pushes to -> | telegram request queue |
|------------------------| |------------------| |------------------------|
|
downloads audio to
|
V
S3 Bucket
|------------------|
| podcasts storage |
|------------------|
^
|
serves public files from
|
[AWS SQS] AWS Lambda
|------------------------| |--------------| |----------|
| telegram request queue | -- triggers -> | telegram api | -- http requests -> | Telegram |
|------------------------| |--------------| |----------|
This is a blank project for CDK development with TypeScript.
The cdk.json
file tells the CDK Toolkit how to execute your app.
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template