To get query_id from Pyrogram sessions you should use this repo -> https://github.com/botprod/get_query_id
Bot for https://t.me/coub/app?startapp=coub__marker_29720096
project/
|
├── main.py # Main script to execute tasks
├── coub.py # API interaction logic with Coub
├── utils/ # Utility modules
│ ├── file_loader.py # Functions for loading data from files
│ ├── parser.py # Logic for parsing queries
│ ├── logger.py # Logging functions
│ └── session_manager.py # Session management, including proxies and headers
|
├── data/ # Data storage
│ ├── coub_query.json # JSON file with Coub queries
│ ├── task.json # JSON file with tasks
│ ├── proxy.txt # File with proxy addresses
│ └── sessions.json # JSON file for storing session details
|
├── requirements.txt # Project dependencies
└── .gitignore # Git ignore rules
- Clone the repository:
git clone <repository-url>
- Navigate to the project directory:
cd project - Create a virtual environment:
python -m venv venv
- Activate the virtual environment:
- On Linux/Mac:
source venv/bin/activate - On Windows:
venv\Scripts\activate
- On Linux/Mac:
- Install the dependencies:
pip install -r requirements.txt
- Before running the script, ensure that all necessary data files are in place, such as
coub_query.jsonandproxy.txtin thedata/folder. - To start the script, run:
python main.py
- During execution, the script will:
- Ping a server to verify the proxy is working.
- Generate session details, including headers and proxies, and save them in
sessions.json. - Compare current queries with those stored in
sessions.jsonto identify new entries. - Log proxy status, including failure information if proxies are not functioning.
- main.py: The main file that handles task execution, user interactions, and session verification.
- coub.py: Contains the logic for interacting with the Coub API (e.g., logging in, claiming rewards, etc.).
- file_loader.py: Utility file for loading data from JSON or text files.
- parser.py: Parses user query data to extract meaningful information.
- logger.py: Adds timestamped log messages to help with debugging.
- session_manager.py: Manages sessions, including generation of headers, proxy verification, and session storage.