danog / MadelineProto

Async PHP client API for the telegram MTProto protocol
https://docs.madelineproto.xyz
GNU Affero General Public License v3.0
2.83k stars 650 forks source link

Using MadelineProto for private server deployments #1263

Open AlessandroZanatta opened 1 year ago

AlessandroZanatta commented 1 year ago

Hello,

I'm currently trying to make a client work with a custom telegram server for research purposes. I stumbled upon this client, which seems to provide everything I need (secret chats, basically), but the issue is that it looks like IP addresses and public key(s) of the servers are hard-coded. Is it really the case, or have I missed something in the documentation?

I've also attempted to modify the source to use my local server. In particular, I modified the following files:

Unfortunately, this doesn't appear to be enough, as all requests appear to be going to Telegram servers (149.154.167.99). I've either missed something, or composer is doing some magic behind the scenes and caching the unmodified code somewhere.

Could someone please help me? Thanks!

danog commented 1 year ago

Wait a second, did you deploy an MTProto server on your own server? If so, what software did you use?

AlessandroZanatta commented 1 year ago

I'm using this: https://github.com/teamgram/teamgram-server