Skip to content

bmpi-dev/tg2web

Repository files navigation

tg2web

Intro

This lib help you static telegram channel message into a website, the demo is in here

Guide

  1. Create a .env file to add your Telegram API Key, such as:
export TG_API_ID=12345678
export TG_API_HASH='xxxxxxxxxxxxxx'
export CDN_DISTRIBUTION_ID=XXXXXXXX

then source it:

source .env

For more of this TG key, you can see this document.

  1. Create a AWS S3 bucket for store your telegram media and a bucket for your html file

You need replace S3 bucket in sync_s3.sh with your S3 bucket.

  1. Install python dependence lib
pip3 install -r requirements.txt
  1. Run make
make

just wait a minute, enjoy yourself!