Skip to content

How to save the signin state #67

Answered by quenbyako
alex-user-go asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @alex-user-go! Telegram config has SessionFile parameter, in this path mtproto client saves your session. telegram authorization is too unintuitive but here is the simplest explaination: when you connect to tg servers, mtproto client must store specific session credentials, so when you send auth.signIn request, you authorize from specific session, not in your app. (yeah, pretty strange but it is). after your session was authorized, you can send other requests from this session. Hope that i explained you as simple as i can.

Also, telegram doesn't like this way, when you signin'ing many times per short duration, telegram block you for 24+ hours due to spamming. soooo, probably you don't…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@alex-user-go
Comment options

@quenbyako
Comment options

@alex-user-go
Comment options

@quenbyako
Comment options

@alex-user-go
Comment options

Answer selected by quenbyako
Comment options

You must be logged in to vote
1 reply
@quenbyako
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants