alexbers / mtprotoproxy

Async MTProto proxy for Telegram
MIT License
1.59k stars 351 forks source link

Sponsor channel is not shown #269

Closed hypercianstand closed 2 years ago

hypercianstand commented 2 years ago

hi how and where can i get adtag ?

hypercianstand commented 2 years ago

I used @MTProxybot but i got this error

Incorrect secret value. It must contain 32 hex characters like 00112233445566778899aabbccddeeff.

because my secret code was 60 characters, so i used 32 characters of zero in the bot and i got this tag

Success! Your proxy has been successfully registered. You can now pass this proxy tag to the software you are using: 30e5d73419aa335e0116060c665b8b70. Here is a link to your proxy server: https://t.me/proxy?server=1*7.**.***.1*5&port=443&secret=00000000000000000000000000000000

but my sponsor channel is not shown this is my config:

PORT = 443

name -> secret (32 hex chars)

USERS = { "tg": "00000000000000000000000000000001",

"tg2": "0123456789abcdef0123456789abcdef",

}

MODES = {

Classic mode, easy to detect

"classic": False,

# Makes the proxy harder to detect
# Can be incompatible with very old clients
"secure": False,

# Makes the proxy even more hard to detect
# Can be incompatible with old clients
"tls": True

}

The domain for TLS mode, bad clients are proxied there

Use random existing domain, proxy checks it on start

TLS_DOMAIN = "www.google.com"

Tag for advertising, obtainable from @MTProxybot

AD_TAG = "30e5d73419aa335e0116060c665b8b70"