9seconds / mtg

Highly opinionated MTPROTO proxy for Telegram
MIT License
1.86k stars 243 forks source link

iOS Telegram with mtg stuck while loading images or files. #283

Open hshh opened 2 years ago

hshh commented 2 years ago

I am running git mtg v2. Compared to android telegram, the iOS/iPhone Telegram with mtg is much slower while loading attachments such as images or files. It always keep stuck on loading.

According to the mtg server network traffic monitor, while loading lots of images, there is 100Mbps+ inbound, and 20Mbps outbound, that is not network problem.

9seconds commented 2 years ago

I know :(

https://github.com/9seconds/mtg/issues/274 https://github.com/9seconds/mtg/issues/270

Can't figure out what is happening. mtg sends a request and telegram replies so long

Odinman commented 2 years ago

Same problem on iOS, but if in the VPN proxy (such as shadowsocks) works perfectly...

9seconds commented 2 years ago

This is because nowadays Telegram uses CDNs to deliver media content: https://core.telegram.org/cdn So, if CDN is available, then content will be delivered fine. Unfortunately, Telegram ignores such CDNs on using MTPROTO proxies and fallbacks to old-fashioned mode of getting results from media cluster that is very overloaded

Odinman commented 2 years ago

This is because nowadays Telegram uses CDNs to deliver media content: https://core.telegram.org/cdn So, if CDN is available, then content will be delivered fine. Unfortunately, Telegram ignores such CDNs on using MTPROTO proxies and fallbacks to old-fashioned mode of getting results from media cluster that is very overloaded

Makes sense, they'll fix this, right?

9seconds commented 2 years ago

I hope so

cod1ingcoding commented 2 years ago

This is entirely the responsibility of telegram app, change to use nicegram will not have this problem at all

hondaspb commented 2 years ago

@9seconds Interesting that images and videos load properly in iOS telegram app connecting with MTProto protocol via https://github.com/TelegramMessenger/MTProxy installed on same server. Switching to mtg makes images and videos stuck on loading

CCCAUCHY commented 2 years ago

I hope so

I don't think they will fix it because the offical version MTPROTO don't have this problem.

Crownzhu commented 1 year ago

So, are there any plans to fix this problem? as the official TelegramMessenger/MTProxy seems to be fine without stuck in IOS.

9seconds commented 1 year ago

@Crownzhu This is because they work with middle proxies. If you want, you can try with v1 of mtg, it supports adtag, thus gonna work with middle proxies and have no such issues at all.