Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/m1chtv/mich-proxy-tester
Telegram MTProto Proxy Tester
https://github.com/m1chtv/mich-proxy-tester
proxy proxy-tester py python python3 telegram telegram-bot telethon telethon-bot
Last synced: 12 days ago
JSON representation
Telegram MTProto Proxy Tester
- Host: GitHub
- URL: https://github.com/m1chtv/mich-proxy-tester
- Owner: m1chtv
- License: mit
- Created: 2024-09-04T14:23:10.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-04T14:35:00.000Z (4 months ago)
- Last Synced: 2024-12-04T13:09:03.630Z (30 days ago)
- Topics: proxy, proxy-tester, py, python, python3, telegram, telegram-bot, telethon, telethon-bot
- Language: Python
- Homepage: https://m1ch.ir/
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mich-proxy-tester
## Telegram MTProto Proxy Tester
This script tests the validity and performance of MTProto proxies for Telegram. It reads proxy links from a file, checks their latency, and saves the valid ones to a separate file.
## Features
- **Proxy Parsing:** Extracts server, port, and secret from MTProto proxy links.
- **Performance Testing:** Measures the ping of each proxy.
- **Validation:** Only proxies with a ping time below 250ms are considered valid.
- **Result Saving:** Saves valid proxies to a specified output file.## Requirements
- Python 3.x
- `requests` module
- `telethon` module## Installation
1. Clone the repository:
```bash
git clone https://github.com/m1chtv/mich-proxy-tester.git
cd mich-proxy-tester
```2. Install the required Python packages:
```bash
pip install requests telethon
```3. Replace `TELEGRAM_API_ID` and `TELEGRAM_API_HASH` in the script with your own Telegram API credentials.
## Usage
1. Create a file named `mich.txt` in the project directory and add your proxy links (one per line) in the following format:
```bash
tg://proxy?server=yourserver&port=yourport&secret=yoursecret
```2. Run the script:
```bash
python mich.py
```3. If valid proxies are found, they will be saved to `proxy.txt` in the project directory.
## Example
Example of a proxy link format:
```bash
tg://proxy?server=example.com&port=443&secret=abcdef1234567890abcdef1234567890
```## Contributing
Feel free to submit issues or pull requests for any improvements or features you'd like to see.