Closed norwend closed 2 months ago
The error comes from other parts of the code. The execution probably yields to something else before await
is finished. One possible solution is try to reorder the calls:
const oldClient = client
client = tdl.createClient({
apiId: API_ID,
apiHash: API_HASH,
});
await oldClient.invoke({
_: 'logOut'
});
I have a code
that should (in theory) destroy the client and then re-create it, but in practice the library still tells me, that my client is closed.
How do you properly re-create a client?