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

Using MadelineProto for private server deployments #1263

Open
AlessandroZanatta opened this issue Nov 29, 2022 · 2 comments
Open

Using MadelineProto for private server deployments #1263

AlessandroZanatta opened this issue Nov 29, 2022 · 2 comments
Labels

Comments

@AlessandroZanatta
Copy link

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:

  • MTProto.php
    • Modified RSA_KEYS with my server's public key
    • Modified dclist to point to my server and port
  • DataCenter.php
    • Modified the foreach at line 480 to use my server, instead of the default X.web.telegram.web

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
Copy link
Owner

danog commented Nov 30, 2022

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

@AlessandroZanatta
Copy link
Author

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

@danog danog added the todo label Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
@danog @AlessandroZanatta and others