mtg icon indicating copy to clipboard operation
mtg copied to clipboard

No media, no errors in logs

Open alexandervlpl opened this issue 8 months ago • 10 comments

Running v2.2.4 with minimal config changes. Clients can connect and text messages are working, but they can't receive or send media. I've tried auto-update = true and allow-fallback-on-unknown-dc = true.

Don't see any issues in the logs:

Mar 25 14:51:38 mtproxy mtg[1306]: {"level":"debug","dc":2,"client-ip":"***","stream-id":"m5Gs1NHm36QKsxkqNYHN3w","logger":"proxy.relay","timestamp":1774450298022,"message":"client -> telegram has been finished"}
Mar 25 14:51:38 mtproxy mtg[1306]: {"level":"debug","dc":2,"client-ip":"***","stream-id":"inNkC16EY3QNk9WoddtFcQ","logger":"proxy.relay","timestamp":1774450298022,"message":"telegram -> client has been finished"}
Mar 25 14:51:38 mtproxy mtg[1306]: {"level":"debug","dc":2,"client-ip":"***","stream-id":"inNkC16EY3QNk9WoddtFcQ","logger":"proxy.relay","timestamp":1774450298023,"message":"client -> telegram has been finished"}
Mar 25 14:51:39 mtproxy mtg[1306]: {"level":"info","dc":2,"client-ip":"***","stream-id":"inNkC16EY3QNk9WoddtFcQ","logger":"proxy","timestamp":1774450299051,"message":"Stream has been finished"}
Mar 25 14:51:39 mtproxy mtg[1306]: {"level":"info","dc":2,"client-ip":"***","stream-id":"m5Gs1NHm36QKsxkqNYHN3w","logger":"proxy","timestamp":1774450299051,"message":"Stream has been finished"}
Mar 25 14:52:20 mtproxy mtg[1306]: {"level":"debug","dc":2,"client-ip":"***","stream-id":"RqlcsKl5czMOlqbGQH2Fug","logger":"proxy.relay","timestamp":1774450340022,"message":"telegram -> client has been finished"}
Mar 25 14:52:20 mtproxy mtg[1306]: {"level":"debug","dc":2,"client-ip":"***","stream-id":"RqlcsKl5czMOlqbGQH2Fug","logger":"proxy.relay","timestamp":1774450340022,"message":"client -> telegram has been finished"}
Mar 25 14:52:21 mtproxy mtg[1306]: {"level":"info","dc":2,"client-ip":"***","stream-id":"RqlcsKl5czMOlqbGQH2Fug","logger":"proxy","timestamp":1774450341035,"message":"Stream has been finished"}
Mar 25 14:52:21 mtproxy mtg[1306]: {"level":"info","client-ip":"***","stream-id":"2AAb3SzqOAzKUaif8_Xcow","logger":"proxy","timestamp":1774450341382,"message":"Stream has been started"}
Mar 25 14:52:21 mtproxy mtg[1306]: {"level":"info","client-ip":"***","stream-id":"Tl0-A_SLS8_o2Z9h8uHHfQ","logger":"proxy","timestamp":1774450341388,"message":"Stream has been started"}

alexandervlpl avatar Mar 25 '26 16:03 alexandervlpl

Set auto-update = false, works for me

kirxcore avatar Mar 25 '26 18:03 kirxcore

Running v2.2.4 with minimal config changes. Clients can connect and text messages are working, but they can't receive or send media. I've tried auto-update = true and allow-fallback-on-unknown-dc = true.

А сервер сам может подгрузить медиафайлы? Если сервера телеграма заблокировали по ip, то fake-tls не поможет, медиа не будет грузиться.

6apakyda avatar Mar 25 '26 18:03 6apakyda

Прокси не может, прокси просто гоняет зашифрованный трафик. Думаю, тут не бан faketls, иначе бы вообще к прокси подключения не было.

Попробуйте отключить автоапдейты. Если не сработает, попробуйте перенести прокси на другую площадку.

9seconds avatar Mar 25 '26 18:03 9seconds

I started with auto-update = false and allow-fallback-on-unknown-dc = false, just tried again. Still does not work.

Note: telemt is running fine on the same server, no issues with media. Can anyone reproduce this?

alexandervlpl avatar Mar 26 '26 04:03 alexandervlpl

Did you try with auto-update = false and allow-fallback-on-unknown-dc = true ? Works fine. If not - mind of changing your host IP or hoster.

kirxcore avatar Mar 26 '26 04:03 kirxcore

Just tried that, same situation. Again, no problems with telemt on the same IP. So doesn't look like blacklisting is the issue.

alexandervlpl avatar Mar 26 '26 05:03 alexandervlpl

Does telemt work with middle proxies or in direct mode?

9seconds avatar Mar 26 '26 07:03 9seconds

I have use_middle_proxy = true .

alexandervlpl avatar Mar 26 '26 07:03 alexandervlpl

It explains. mtg supports only direct mode, there is no support for middle proxies. I suppose there is something with connectivity to telegram core network from this host. Middle proxies exploit a slightly different route.

It does not mean that IP is blacklisted, but I do expect that some uplinks that go towards internet are filtered

9seconds avatar Mar 26 '26 07:03 9seconds

Thanks for investigating, great work nonetheless!

alexandervlpl avatar Mar 26 '26 08:03 alexandervlpl