Hello and thanks for your work!
In your code I added my variables: user id, dc id, auth key.
I received the file: tgnet.dat and then moved it to the Android emulator in the folder /data/data/org.telegram.messenger
But I didn’t get the authorization in telegram, tell me where the problem could be?