Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Telegram X Android problem #23

Open
GoldenOne1 opened this issue Jun 16, 2018 · 50 comments
Open

Telegram X Android problem #23

GoldenOne1 opened this issue Jun 16, 2018 · 50 comments

Comments

@GoldenOne1
Copy link

GoldenOne1 commented Jun 16, 2018

Tnx , This really works well on Windows Server 2008
but my proxy gets error on Telegram X android

Telegram Android and Telegram Desktop are OK
Problem is Telegram X Android (new version supports mtproto)

Whats Solution?

@titancomputer
Copy link

I've checked. problem exist. i'll add manually other ips of telegram to the codes but didn't work.

@ehaidari
Copy link

i have same problem with telegram x android.
i cant connect to jsmtproxy!
please update JSMTProxy to new version.

@masterprogrammer513
Copy link

masterprogrammer513 commented Jun 17, 2018

The problem resolved in my new fork
https://github.com/masterprogrammer513/JSMTProxy

@GoldenOne1
Copy link
Author

your fork didnt work on any client
not connected on telegram,telegram x,telegram desktop

@masterprogrammer513
Copy link

@EA1234567 There is 13 connected client online
There is no problem in this code

@GoldenOne1
Copy link
Author

@cinohee but im sure you forgot something
plz check codes again
tnx

@masterprogrammer513
Copy link

This is my server
My friend also run on centos7 x64 without any problem
Please check firewall and user config
image

@masterprogrammer513
Copy link

@EA1234567 check my new version file I increased timeout to 30 sec again

@GoldenOne1
Copy link
Author

GoldenOne1 commented Jun 17, 2018

i checked again new version
not connected
can you check codes? :(
@cinohee

@GoldenOne1
Copy link
Author

when i use FreedomPrevails/JSMTProxy all of clients are ok (except telegram x)
but when i use your fork all of clients get error
i cheked again and again (atleast 5 times)
@cinohee
@FreedomPrevails

@K900
Copy link

K900 commented Jun 17, 2018

This commit has the right idea - you just need to pass the protocol tag (either 0xef 0xef 0xef 0xef or 0xee 0xee 0xee 0xee) to the Telegram servers to make the proxy work.

@GoldenOne1
Copy link
Author

@K900 can you copy past codes here?
i dont uderstand

@K900
Copy link

K900 commented Jun 17, 2018

I'm not familiar enough with JS to rewrite the code. If you just want a working solution, try this - I've implemented similar changes there and can confirm it works on multiple devices.

@GoldenOne1
Copy link
Author

@K900 i have windows server

@K900
Copy link

K900 commented Jun 17, 2018

The Python version of the proxy should run just fine on Windows, including my fork of it. Also, this is horribly off-topic for this repository.

@GoldenOne1
Copy link
Author

@K900 its need docker
i have only 1 core cpu and 1gb ram

@K900
Copy link

K900 commented Jun 17, 2018

It does not need Docker, running the script manually works just fine.

@masterprogrammer513
Copy link

@EA1234567 do you just replace new code with old one?
Could you give me remote address team viewer or etc?

@GoldenOne1
Copy link
Author

@K900 really? its very good
do you have any manuals or guide about how run this script on windows?

@K900
Copy link

K900 commented Jun 17, 2018

I can help you run it, but you'll have to contact me on Telegram: t.me/k900x. I'm not going to spam this unrelated issue any more.

@masterprogrammer513
Copy link

@EA1234567 do you use my config for user manager?
This code manage user to avoid multiple login with one server based on IP.
You could set unlimited or limited connection

@GoldenOne1
Copy link
Author

@cinohee this is my anydesk id: 461457966
anydesk is portable software like team viewer (only 2mb size)
can you connect to my pc?

@masterprogrammer513
Copy link

masterprogrammer513 commented Jun 17, 2018

@EA1234567 add all file in my fork to avoid any problem
Contact me telegram
secger.js
config.json

@titancomputer
Copy link

can't start your version @masterprogrammer513

on starting it hangs on loop and after few moments stops.

@masterprogrammer513
Copy link

@titancomputer
You need all of files I created
Copy hole git

@titancomputer
Copy link

@masterprogrammer513 i've copied the full clone of your files.

didn't start at all.

@masterprogrammer513
Copy link

@titancomputer i found there is bug in config file there is one simicolon more.
download new config file and retest

@titancomputer
Copy link

@masterprogrammer513 yes, what a bug!
app gets start but telegram x android didn't work with your codes too.
all other clients do OK.

@masterprogrammer513
Copy link

@titancomputer please attention just telegeram X beta work with mtproto
Please update to latest beta version
If use unlimite : false only ine ip could connect to server set it into true
I test with telegramX beta latest version on blue stack without any problem
and my friend test on windows mobile version of Telegram
Change secret code to new code and retest

@titancomputer
Copy link

titancomputer commented Jun 17, 2018

@masterprogrammer513 i know that, i've got last version beta of telegram x on play store, works with proxies that made with MTProxy but didn't work on your codes or @FreedomPrevails

tested many secret, make no difference.
is secret may changes anything? how we can get a OK secret?

@masterprogrammer513
Copy link

@titancomputer I will check it tommoro again
what is your server info?
os,cpu,vps/dedic...

@titancomputer
Copy link

@masterprogrammer513 windows server 2012 R2, 2GB RAM, 2 Core XEON E3-1270 v6

@masterprogrammer513
Copy link

masterprogrammer513 commented Jun 17, 2018

@titancomputer what is you telegram Xmobile number country?
maybe we need add more telegram server ip to file
which proxy server workh with Telegram X?
Do you have source code of that proxy?

@titancomputer
Copy link

@masterprogrammer513 country IR +98
this mtproto is working with all.
i already asked problem on tdlib in here.

@masterprogrammer513
Copy link

@titancomputer another user told me after error 400 the connection will work after 30sec
Do you test after error 400?

@masterprogrammer513
Copy link

@titancomputer make separated user for TelegramX and check again

@masterprogrammer513
Copy link

image

@titancomputer
Copy link

titancomputer commented Jun 18, 2018

@masterprogrammer513 thats true. it takes too long but get connected.
very slow on updating or downloading.
i do that for 2 account. one for x one for others. no difference.

@masterprogrammer513
Copy link

@titancomputer I think it will become faster after some texting
I will check is deference between Telegram and X version servers IP

@GoldenOne1
Copy link
Author

GoldenOne1 commented Jun 18, 2018

@masterprogrammer513 @titancomputer yes after 30-60 second connection established but speed is low
i think we must connect to middle east servers not europe
problem is ip address

@GoldenOne1
Copy link
Author

GoldenOne1 commented Jun 18, 2018

@masterprogrammer513

IP list:

proxy_for 1 149.154.175.50:8888;
proxy_for -1 149.154.175.50:8888;
proxy_for 2 149.154.162.24:80;
proxy_for 2 149.154.162.22:80;
proxy_for -2 149.154.162.24:80;
proxy_for -2 149.154.162.22:80;
proxy_for 3 149.154.175.100:8888;
proxy_for -3 149.154.175.100:8888;
proxy_for 4 91.108.4.199:8888;
proxy_for 4 91.108.4.209:8888;
proxy_for 4 91.108.4.192:8888;
proxy_for 4 91.108.4.140:8888;
proxy_for 4 91.108.4.174:8888;
proxy_for 4 91.108.4.162:8888;
proxy_for 4 91.108.4.165:8888;
proxy_for 4 91.108.4.228:8888;
proxy_for 4 91.108.4.166:8888;
proxy_for 4 91.108.4.142:8888;
proxy_for -4 149.154.165.250:8888;
proxy_for -4 149.154.165.109:8888;
proxy_for 5 91.108.56.183:8888;
proxy_for 5 91.108.56.176:8888;
proxy_for -5 91.108.56.183:8888;
proxy_for -5 91.108.56.176:8888;

@masterprogrammer513
Copy link

@titancomputer I think this is Telegram X beta bug that not work perfectly with MTPROTO proxy .
The X version do not support all secret key.
I think better wait until released version of Telegram X

@GoldenOne1
Copy link
Author

@masterprogrammer513

I think so

@titancomputer
Copy link

@GoldenOne1
Copy link
Author

GoldenOne1 commented Jun 18, 2018

@titancomputer @masterprogrammer513 You are right,other proxies work well on Telegram X

@titancomputer
Copy link

@masterprogrammer513 didn't resolve the issue?

@nullers
Copy link

nullers commented Jun 28, 2018

@FreedomPrevails This messages comes: error (400: connection closed) on Telegram X 0.20.10.947-armeabi-v7a

@Djmahdi0098
Copy link

Djmahdi0098 commented Jul 28, 2018

I'm connected but my download speed is low (Telegram , telegram X , etc)
The connection is not stable, it is permanently disconnected on some devices (telegram X)

and what is say ?
openssl config failed: error:02001003:system library:fopen:No such process

@Djmahdi0098
Copy link

@masterprogrammer513

@SHAliakbari
Copy link

any progress ?! i already have problem with Telegram X android version !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants