MigrationNeededError reports that Telegram requested DC migration to continue login.MigrateTo*tg.AuthLoginTokenMigrateTo Tried indicates that the migration was attempted.
Deprecated: do not use. QR login uses migrate function passed via
options. Error implements error.
*MigrationNeededError : error
QR implements Telegram QR login flow.api*tg.ClientappHashstringappIDintclockclock.Clockmigratefunc(ctx context.Context, dcID int) error Accept accepts given token.
See https://core.telegram.org/api/qr-login#accepting-a-login-token. Auth generates new QR login token, shows it and awaits acceptation.
NB: Show callback may be called more than once if QR expires. Export exports new login token.
See https://core.telegram.org/api/qr-login#exporting-a-login-token. Import imports accepted token.
See https://core.telegram.org/api/qr-login#confirming-importing-the-login-token.
func NewQR(api *tg.Client, appID int, appHash string, opts Options) QR
func github.com/gotd/td/telegram.(*Client).QR() QR
Package-Level Functions (total 5, all are exported)
AcceptQR accepts given token.
See https://core.telegram.org/api/qr-login#accepting-a-login-token.
NewQR creates new QR
NewToken creates new Token.
OnLoginToken sets handler for given dispatcher and returns signal channel.
ParseTokenURL creates Token from given URL.
The pages are generated with Goldsv0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.