diff --git a/README.md b/README.md index 2624bd4..9cfeed0 100644 --- a/README.md +++ b/README.md @@ -2,26 +2,18 @@ ## Create API ID/HASH -1)Login at https://my.telegram.org/apps - -2)API development tools - -3)Create new application - +1)Login at https://my.telegram.org/apps +2)API development tools +3)Create new application 4)Copy App api_id and api_hash ## Get session -1)python3 -m venv .venv - -2)source .venv/bin/activate - -3)pip install pyrogram - -4)Run ```TG_API_ID=290389758 TG_API_HASH=c22987sdfnkjjhd37efa5f0 python3 session_generator.py``` - -5)Enter phone number, get code in telegram, enter code, and copy session string: +1)```python3 -m venv .venv && source .venv/bin/activate``` +2)```pip install pyrogram``` +3)Run ```TG_API_ID=290389758 TG_API_HASH=c22987sdfnkjjhd37efa5f0 python3 session_generator.py``` +4)Enter phone number, get code in telegram, enter code, and copy session string: ```text Enter phone number or bot token: +7 993 850 5104 @@ -55,6 +47,7 @@ services: TG_SESSION_STRING: "AgG7QBoANg0YVmwZTZmqadO4MJQdn............FPEaL8AA" PYROGRAM_BRIDGE_URL: https://pgbridge.example.com API_PORT: 80 + TOKEN: "1234567890" restart: always volumes: - pyrogram_bridge:/app/data @@ -66,9 +59,15 @@ services: traefik.http.routers.pgbridge.tls: true ``` +PYROGRAM_BRIDGE_URL - url to rss bridge, used for generate absolute url to media +TOKEN - optional, if set, will be used to check if user has access to rss feed. If token is set, rss url will be https://pgbridge.example.com/rss/DragorWW_space/1234567890 + ## Get channel rss feed ``` curl https://pgbridge.example.com/rss/DragorWW_space ``` +``` curl https://pgbridge.example.com/rss/DragorWW_space/1234567890 ``` with auth token +``` curl https://pgbridge.example.com/rss/DragorWW_space?limit=30 ``` with limit parameter (also, can be used with token) + or