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

You need to provide the secret for the MTProxy #771

Open
icanary opened this issue Jan 22, 2025 · 0 comments
Open

You need to provide the secret for the MTProxy #771

icanary opened this issue Jan 22, 2025 · 0 comments

Comments

@icanary
Copy link

icanary commented Jan 22, 2025

Hi,

i'm using two different servers.
i'm using this gramjs in docker container.
i'm using socks proxy for user login.
i'm using the same gramjs version on both servers: 2.17.4

but in one sever i can successfully login and using gramjs, and on another server i get this error:

"You need to provide the secret for the MTProxy"

why? i'm using the same proxy and same gramjs setup. So where is the difference?

my code for auth is:

const client = new TelegramClient(session, this.api_id, this.api_hash, {
    connectionRetries: 2,
    requestRetries: 2,
    autoReconnect: true,
    useWSS: false,
    proxy: {
        ip: data.proxy.ip,
        port: data.proxy.port,
        username: data.proxy.login,
        password: data.proxy.password,
        socksType: 5,
        MTProxy: false
    },
    baseLogger: new Logger(LogLevel.NONE)
})

Please, help me to solve the problem..

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

1 participant