rizaumami / tdbot.lua

Lua wrapper for telegram-bot
GNU General Public License v3.0
24 stars 21 forks source link

setTdlibParameters does not work #13

Open Kia-Pashang opened 6 years ago

Kia-Pashang commented 6 years ago

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 commented 6 years ago

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

rizaumami commented 6 years ago

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

Kia-Pashang commented 6 years ago

@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 commented 6 years ago

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 commented 6 years ago

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

Kia-Pashang commented 5 years ago

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