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

setTdlibParameters does not work #13

Open
Kia-Pashang opened this issue Aug 3, 2018 · 6 comments
Open

setTdlibParameters does not work #13

Kia-Pashang opened this issue Aug 3, 2018 · 6 comments

Comments

@Kia-Pashang
Copy link

hi i wanna change the api id and api hash from the lua-source in tdbot
but ill face this error :
["@type"] = "error",
code = 400,
message = "Unexpected setTdlibParameters"
how can i fix it ?

@Kia-Pashang
Copy link
Author

@rizaumami and can we set MTProto Proxy in tdbot lua ?

@rizaumami
Copy link
Owner

Have you tried setProxy method?
Never use a proxy my self, so I'm not test it yet...

@Kia-Pashang
Copy link
Author

@rizaumami no problem for setting MTProto Proxy i was just asking about it , what about this error :
["@type"] = "error",
code = 400,
message = "Unexpected setTdlibParameters"
how it'll be sloved ?
some bots will be deleted account and i dunno why , so i wanna stop deleting from telegram by changing this Parameters
thanks for answering.

@rizaumami
Copy link
Owner

rizaumami commented Aug 6, 2018

Sorry, I've not test setTdlibParameters yet.
Perhaps you can see following script as an example: https://github.com/giuseppeM99/tdlua/blob/b54cd0c29c7bc89b2c3792d7333f42f98eaad725/examples/tdbot.lua#L69-L82

@Kia-Pashang
Copy link
Author

@rizauami thanks about that but when i set a proxy and its still connecting to proxy how can i remove the proxy ?

@Kia-Pashang
Copy link
Author

@rizaumami hello , can we talk in telegram please ? i really need your help

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

2 participants