Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 887 Bytes

Readme.md

File metadata and controls

37 lines (26 loc) · 887 Bytes

Telegram channel for Open online

Telegram channel for Open. Channel available at Open telegram channel.

How to use

  • Create a telegram channel
  • Create a telegram bot with BotFather
  • Deploy to AWS or use the container for testing

Deployment to AWS

Use build.sh to build the lambda zip. (Requires docker).

chmod +x build.sh
./build.sh

Use terraform in order to deploy the infrastracture + the code to AWS.

export TF_VAR_telegram_bot_key=<bot_key>
export TF_VAR_telegram_channel_id=<@channel>
terraform init
terraform apply -auto-approve

Test with docker

Replace <@channel> with the actual telegram channel and <bot_key> with the bot key from botfather.

docker build . -t open
docker run --name open -e TGCHANNELID=<@channel> -e TGBOTKEY=<bot_key> -d open