Use a telegram bot to parse the received telegram message link, repackage the content of the message and send it back to the user.
| Category | Support |
|---|---|
| media types | video, photo, voice, audio, document |
git clone https://github.com/jadrian77/telegram_content_pivot.git
cd telegram_content_pivot
pip3 install -r requirements.txtUsing a Python virtual environment is highly recommended but not required:
before pip3 install -r requirements.txt use
python3 -m venv venv
source venv/bin/activateAll the configurations are passed to the Telegram Content Pivot via config.yaml file.
- Copy
config.yaml.exampletoconfig.yaml:cp config.yaml.example config.yaml
- Update the values in
config.yamlwith your specific details (API keys, Bot token, etc.).
Getting your API Keys:
-
create api_id & api_hash :
- Log in to Telegram API Platform
- Navigate to API Development Tools to create a new application
- Submit application details
-
Generate bot_token
- Open a chat conversation with botfather, create a bot via @BotFather and follow setup instructions
python3 main.pybash package.sh
cd dist
./telegram_content_pivotsocks4, 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_passwordIf your proxy doesn’t require authorization you can omit username and password. Then the proxy will automatically be enabled.