nodegin/tglib

asks for Authorization credential though given in code

Closed this issue · 3 comments

I had many scripts with tglib and they were logged in accounts and was working perfectly. After months now I want to use them again but not are logged in nor can login! They prompt me with:
tglib.input.AuthorizationType
tglib.input.AuthorizationValue
But no response after entering them. I don't remember what is changed during this time that stop it from working. Could you guide me please to find the problem?
(I also registered a callback for td:getInput following readme but no difference)

Are you upgrading tglib to v3.x?

tglib now support WebAssembly therefore the authentication was changed. See the new authentication flow in example:

https://github.com/nodegin/tglib/blob/master/examples/sendMessage.js

If your code written in v2.x you can install instead to lock your version in order to stabelize your programs.

Thank you, I downgraded and my personal problem solved.