Skip to content

jadrian77/telegram_content_pivot

Repository files navigation

Telegram Content Pivot

License: MIT Code style: black

Overview:

Use a telegram bot to parse the received telegram message link, repackage the content of the message and send it back to the user.

Support Table:

Category Support
media types video, photo, voice, audio, document

Installation

git clone https://github.com/jadrian77/telegram_content_pivot.git
cd telegram_content_pivot
pip3 install -r requirements.txt

Using a Python virtual environment is highly recommended but not required: before pip3 install -r requirements.txt use

python3 -m venv venv
source venv/bin/activate

Configuration

All the configurations are passed to the Telegram Content Pivot via config.yaml file.

Setup Configuration

  1. Copy config.yaml.example to config.yaml:
    cp config.yaml.example config.yaml
  2. Update the values in config.yaml with your specific details (API keys, Bot token, etc.).

Getting your API Keys:

  • create api_id & api_hash :

    1. Log in to Telegram API Platform
    2. Navigate to API Development Tools to create a new application
    3. Submit application details
  • Generate bot_token

    • Open a chat conversation with botfather, create a bot via @BotFather and follow setup instructions

Execution

python3 main.py

Package and exeution

bash package.sh
cd dist
./telegram_content_pivot

Proxy

socks4, socks5, http proxies are supported in this project currently. To use it, add the following to the bottom of your config.yaml file

proxy:
  scheme: socks5
  hostname: 127.0.0.1
  port: 1234
  username: your_username
  password: your_password

If your proxy doesn’t require authorization you can omit username and password. Then the proxy will automatically be enabled.

About

Use telegram bot to process the received telegram message link, try to get the content and send it back to the user of the bot.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors