Files
mautrix-telegram/pkg/gotd/telegram/auth/qrlogin/options.go
T
2025-06-27 20:03:37 -07:00

21 lines
327 B
Go

package qrlogin
import (
"context"
"go.mau.fi/mautrix-telegram/pkg/gotd/clock"
)
// Options of QR.
type Options struct {
Migrate func(ctx context.Context, dcID int) error
Clock clock.Clock
}
func (o *Options) setDefaults() {
// It's okay to use zero value Migrate.
if o.Clock == nil {
o.Clock = clock.System
}
}