Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yakimka/tg_upload_proxy
Proxying files upload larger than 50 MB over Telegram
https://github.com/yakimka/tg_upload_proxy
file-upload fileupload proxy telegram telegram-bot
Last synced: 28 days ago
JSON representation
Proxying files upload larger than 50 MB over Telegram
- Host: GitHub
- URL: https://github.com/yakimka/tg_upload_proxy
- Owner: yakimka
- License: mit
- Created: 2020-08-13T20:43:57.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-04T08:18:54.000Z (over 3 years ago)
- Last Synced: 2023-03-03T22:33:17.637Z (over 1 year ago)
- Topics: file-upload, fileupload, proxy, telegram, telegram-bot
- Language: Python
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
.. image:: https://github.com/yakimka/tg_upload_proxy/workflows/build/badge.svg
.. image:: https://codecov.io/gh/yakimka/tg_upload_proxy/branch/master/graph/badge.svg
:target: https://codecov.io/gh/yakimka/tg_upload_proxyTelegram Upload Proxy
=====================Telegram Bot Api allows you to upload files up to 50 megabytes only.
You can use tg_upload_proxy for avoid this limit. This app uses MTProto for interaction with Telegram Bot API.
Quote from `telethon `_ documentation:
Bot API is simply an HTTP endpoint which translates your requests to it into MTProto calls through tdlib, their bot backend.
Both official applications and third-party clients (like your own applications) logged in as either user or bots can use MTProto to communicate directly with Telegram’s API (which is not the HTTP bot API).
Instalation
-----------
::python setup.py install
or you can use Docker:
::
docker run -p 8081:8081 -e TG_API_ID="API_ID" -e TG_API_HASH="API_HASH" -e TG_BOT_TOKEN="BOT_TOKEN" yakim/tg_upload_proxy
Open `http://127.0.0.1:8081/docs/ `_ page in browser.
Configuration
-------------App take configuration from these environment variables:
::TG_API_ID - API ID from my.telegram.org
TG_API_HASH - API Hash from my.telegram.org
TG_BOT_TOKEN - telegram bot tokenList of available arguments:
::tg_upload_proxy_api --help
API Documentation
-----------------You can find Swagger UI on /docs/ page