Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get auth_key _id #33

Open
anttorval opened this issue Jan 22, 2015 · 2 comments
Open

Get auth_key _id #33

anttorval opened this issue Jan 22, 2015 · 2 comments

Comments

@anttorval
Copy link

Hello,
All methods that do not require authentication as sendCode, checkPhone, signIn, signUp return successfull but others methods return timeoutexception.
I used implementation of AbsApiState from telegram-bot (https://github.com/ex3ndr/telegram-bot/blob/master/app/src/main/java/org/telegram/bot/engine/MemoryApiState.java).
I think that using this method:
public synchronized void putAuthKey(int dcId, byte[] key) {
keys.put(dcId, key);
}
The others methods return successfull but the parameter "key" is not how to get it.

In conclusion, I want to know how to get and save the authentication of a user so he can send messages etc ...

I'm sorry for my limeted English.

@Raakh
Copy link

Raakh commented Sep 19, 2015

Hello, can you send me complete working example? My email is ghayel@gmail.com

@Chaki1306
Copy link

annttorval, how to save authorization?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants