github.com/gotd/td/tgerr.Error.Type (field)

17 uses

	github.com/gotd/td/tgerr (current package)
		error.go#L18: 	Type     string // FLOOD_WAIT
		error.go#L38: 	return e.Type == t
		error.go#L82: 	e.Type = e.Message
		error.go#L112: 	e.Type = strings.Join(nonDigit, "_")
		error.go#L116: 	if e.Type != e.Message {
		error.go#L117: 		return fmt.Sprintf("rpc error code %d: %s (%d)", e.Code, e.Type, e.Argument)
		error.go#L124: 	if errors.As(err, &rpcErr) && rpcErr.Type == t {

	github.com/gotd/td/telegram
		account_status.go#L72: 	switch rpcErr.Type {
		account_status.go#L86: 	if strings.HasPrefix(rpcErr.Type, authKeyDropPrefix) {
		account_status.go#L115: 		Type:    u.Type,
		account_status.go#L231: 		attribute.String("reason", rpcErr.Type),
		account_status.go#L243: 		log.String("reason", rpcErr.Type),
		auth_lost.go#L67: 	return ok && strings.HasPrefix(rpcErr.Type, authKeyDropPrefix)
		auth_lost.go#L242: 		reason = rpcErr.Type
		invoke.go#L81: 		if rpcErr, ok := tgerr.As(err); ok && strings.HasSuffix(rpcErr.Type, "_MIGRATE") {
		invoke.go#L84: 				log.String("error_type", rpcErr.Type),

	github.com/gotd/td/telegram/downloader
		refresh.go#L31: 	return strings.HasPrefix(rpcErr.Type, "FILE_REFERENCE_")