From 3246697a9573856a363452d36017122a7b94ed30 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Sat, 1 Feb 2025 18:33:10 +0300 Subject: [PATCH] Update README with setup instructions and API usage examples --- README.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 83d8468..eb95e6a 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,13 @@ +# Pyrogram Bridge - - - -Create API ID/HASH: +## Create API ID/HASH: 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: +## Get session: 1)python3 -m venv .venv 2)source .venv/bin/activate 3)pip install pyrogram @@ -43,3 +41,11 @@ Use session on ENV variable TG_SESSION_STRING in docker-compose.yml volumes: .... ``` +### Get channel messages: +``` +curl http://127.0.0.1:8000/html/DragorWW_space/87 +``` +Or +``` +curl http://127.0.0.1:8000/json/DragorWW_space/87 +```