tdbot.lua icon indicating copy to clipboard operation
tdbot.lua copied to clipboard

setTdlibParameters does not work

Open Kia-Pashang opened this issue 6 years ago • 6 comments

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 avatar Aug 03 '18 16:08 Kia-Pashang

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

Kia-Pashang avatar Aug 03 '18 21:08 Kia-Pashang

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

rizaumami avatar Aug 04 '18 06:08 rizaumami

@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.

Kia-Pashang avatar Aug 04 '18 23:08 Kia-Pashang

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

rizaumami avatar Aug 06 '18 14:08 rizaumami

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

Kia-Pashang avatar Aug 07 '18 20:08 Kia-Pashang

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

Kia-Pashang avatar May 27 '19 03:05 Kia-Pashang