geovex / tgp

telegram proxy written in go
MIT License
3 stars 1 forks source link

Invalid adtag #3

Open aa1008611 opened 1 year ago

aa1008611 commented 1 year ago

adtag

geovex commented 1 year ago

This mode is experimental. Can you provide full config?

geovex commented 1 year ago

As unpleasant as it may sound, it "works for me". Your config seems correct (except obfuscate option is useless with adtag). I can only advise you to check all settings in MTProxybot (may be there are typos in IP or channel name) and also check stats so you can see whether clients' connections are active at all.

Since this mode has mediocre implementation under the hood it will be experimental for a long time. You can use official proxy server which is specifically designed for such scenario or this alternative client.

geovex commented 1 year ago

Actually I tried your tag and desktop client shows sponsored channel. My key hypothesis is that this is some wired region-related issue.

aa1008611 commented 1 year ago

I can connect to the agent, but do not display sponsors, so is this my problem or the project's problem? Other projects can display label sponsors

geovex commented 1 year ago

My last ridiculous assumption is that you already own/subscribed-to channel and test it from the same account, and that's why you don't see differences. Try check from other account of from friend's phone.

If I assume that everything you can, you did right, then it either some weird regional ban (unlikely for channel with 1-2k users) or some corner case that I can not catch (again, i see your advertised channel when I use your adtag in my config, this means you registered it correctly and it should work).

So far we established: You registered proxy and sponsored channel. Your sponsored channel works on all my test devices (means you did that part right). At least one of your devices does not advertise or you can't see it for some reason.

Suggested solution: try check from different account and different device.

some technical details Proxy does not know about sponsorship. It can push adtag upstream during connection and then it just forwards encrypted messages. The other notable fact is that with adtag tgp operates on very different algorithm because it has to connect to different upstream servers and distinguish separate messages. In layman's terms if connection established, everything should work and tgp only handles the connection. Main goals of this particular software was to add multi-user support and ability to connect to upstream through proxy or anonymizer. Sponsored mode (requires connection through middle proxies) was added as a bonus in spare time and i rarely check this functionality. If this functionality is critical for you, you can try other software implementations.
aa1008611 commented 1 year ago

I did a great job testing multiple accounts, but they didn't show up.. I don't know what happens when I connect to your agent

geovex commented 1 year ago

I'm afraid a can not determine cause of the issue. I will left this open until something new comes up.

aa1008611 commented 1 year ago

Thank you for your answer. wish you good luck

DzmitryKudrashou commented 1 year ago

I've just checked it. It works well for me. Is it possible that it depends on some variables that we don't know about?

aa1008611 commented 1 year ago

I've just checked it. It works well for me. Is it possible that it depends on some variables that we don't know about?

Location of use in China