github gotd/td v0.170.0

25 minutes ago

What's new

  • auth.Session, a sign-in and sign-up state machine (#2023), mirroring tdlib's authorizationState: WaitCode (every code type; Resend by next type after the timeout; ReportMissing), WaitEmailAddress and WaitEmailCode (email set-up and sign-in by email code or Google/Apple token, ResetEmail), WaitPayment (paid code), WaitPassword (2FA from any step), WaitRegistration, Ready. On an RPC error the state stays, so an input can be retried.
  • auth.Flow with a *Client runs on Session: email codes through the optional EmailAuthenticator, sign-up after any step. Other FlowClient implementations keep the previous path.

Full Changelog: v0.169.0...v0.170.0

Don't miss a new td release

NewReleases is sending notifications on new releases.